Skip to content

Commit

Permalink
Remove unused instance variable in Z-wave (home-assistant#110442)
Browse files Browse the repository at this point in the history
* Remove unused variable and fix typing in zwave_js

* remove redundant type
  • Loading branch information
raman325 authored and astrandb committed Feb 13, 2024
1 parent 34da76c commit f88424c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions homeassistant/components/zwave_js/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from collections.abc import Callable, Mapping
from dataclasses import dataclass
from datetime import datetime
from typing import Any, cast
from typing import Any

import voluptuous as vol
from zwave_js_server.client import Client as ZwaveClient
Expand All @@ -19,7 +19,6 @@
from zwave_js_server.model.driver import Driver
from zwave_js_server.model.node import Node as ZwaveNode
from zwave_js_server.model.node.statistics import NodeStatisticsDataType
from zwave_js_server.model.value import ConfigurationValue
from zwave_js_server.util.command_class.meter import get_meter_type

from homeassistant.components.sensor import (
Expand Down Expand Up @@ -799,7 +798,6 @@ def __init__(
super().__init__(
config_entry, driver, info, entity_description, unit_of_measurement
)
self._primary_value = cast(ConfigurationValue, self.info.primary_value)

property_key_name = self.info.primary_value.property_key_name
# Entity class attributes
Expand Down

0 comments on commit f88424c

Please sign in to comment.