Remove deprecated ISY994 Insteon and variable sensor entities (#92255)
This commit is contained in:
parent
b0b4134ded
commit
d9e0681123
3 changed files with 4 additions and 64 deletions
|
@ -22,7 +22,6 @@ from pyisy.constants import (
|
|||
)
|
||||
from pyisy.nodes import Group, Node, Nodes
|
||||
from pyisy.programs import Programs
|
||||
from pyisy.variables import Variables
|
||||
|
||||
from homeassistant.const import ATTR_MANUFACTURER, ATTR_MODEL, Platform
|
||||
from homeassistant.helpers.entity import DeviceInfo
|
||||
|
@ -349,8 +348,6 @@ def _categorize_nodes(
|
|||
if getattr(node, "is_dimmable", False):
|
||||
aux_controls = ROOT_AUX_CONTROLS.intersection(node.aux_properties)
|
||||
for control in aux_controls:
|
||||
# Deprecated all aux properties as sensors. Update in 2023.5.0 to remove extras.
|
||||
isy_data.aux_properties[Platform.SENSOR].append((node, control))
|
||||
platform = NODE_AUX_FILTERS[control]
|
||||
isy_data.aux_properties[platform].append((node, control))
|
||||
if hasattr(node, TAG_ENABLED):
|
||||
|
@ -432,20 +429,6 @@ def _categorize_programs(isy_data: IsyData, programs: Programs) -> None:
|
|||
isy_data.programs[platform].append(entity)
|
||||
|
||||
|
||||
def _categorize_variables(
|
||||
isy_data: IsyData, variables: Variables, identifier: str
|
||||
) -> None:
|
||||
"""Gather the ISY Variables to be added as sensors."""
|
||||
try:
|
||||
isy_data.variables[Platform.SENSOR] = [
|
||||
variables[vtype][vid]
|
||||
for (vtype, vname, vid) in variables.children
|
||||
if identifier in vname
|
||||
]
|
||||
except KeyError as err:
|
||||
_LOGGER.error("Error adding ISY Variables: %s", err)
|
||||
|
||||
|
||||
def convert_isy_value_to_hass(
|
||||
value: int | float | None,
|
||||
uom: str | None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue