diff --git a/homeassistant/components/zha/core/channels/general.py b/homeassistant/components/zha/core/channels/general.py index 8747355a21a..dc06d01e596 100644 --- a/homeassistant/components/zha/core/channels/general.py +++ b/homeassistant/components/zha/core/channels/general.py @@ -147,7 +147,6 @@ class LevelControlClientChannel(ClientChannel): @registries.BINDABLE_CLUSTERS.register(general.LevelControl.cluster_id) -@registries.LIGHT_CLUSTERS.register(general.LevelControl.cluster_id) @registries.ZIGBEE_CHANNEL_REGISTRY.register(general.LevelControl.cluster_id) class LevelControlChannel(ZigbeeChannel): """Channel for the LevelControl Zigbee cluster.""" @@ -222,10 +221,7 @@ class OnOffClientChannel(ClientChannel): """OnOff client channel.""" -@registries.BINARY_SENSOR_CLUSTERS.register(general.OnOff.cluster_id) @registries.BINDABLE_CLUSTERS.register(general.OnOff.cluster_id) -@registries.LIGHT_CLUSTERS.register(general.OnOff.cluster_id) -@registries.SWITCH_CLUSTERS.register(general.OnOff.cluster_id) @registries.ZIGBEE_CHANNEL_REGISTRY.register(general.OnOff.cluster_id) class OnOffChannel(ZigbeeChannel): """Channel for the OnOff Zigbee cluster.""" @@ -370,7 +366,6 @@ class PollControl(ZigbeeChannel): await self.set_long_poll_interval(self.LONG_POLL) -@registries.DEVICE_TRACKER_CLUSTERS.register(general.PowerConfiguration.cluster_id) @registries.ZIGBEE_CHANNEL_REGISTRY.register(general.PowerConfiguration.cluster_id) class PowerConfigurationChannel(ZigbeeChannel): """Channel for the zigbee power configuration cluster.""" diff --git a/homeassistant/components/zha/core/channels/hvac.py b/homeassistant/components/zha/core/channels/hvac.py index 1eedf51cd00..ac832aacc61 100644 --- a/homeassistant/components/zha/core/channels/hvac.py +++ b/homeassistant/components/zha/core/channels/hvac.py @@ -92,7 +92,6 @@ class Pump(ZigbeeChannel): """Pump channel.""" -@registries.CLIMATE_CLUSTERS.register(hvac.Thermostat.cluster_id) @registries.ZIGBEE_CHANNEL_REGISTRY.register(hvac.Thermostat.cluster_id) class ThermostatChannel(ZigbeeChannel): """Thermostat channel.""" diff --git a/homeassistant/components/zha/core/channels/lighting.py b/homeassistant/components/zha/core/channels/lighting.py index 2828193f8cf..16223582c33 100644 --- a/homeassistant/components/zha/core/channels/lighting.py +++ b/homeassistant/components/zha/core/channels/lighting.py @@ -19,7 +19,6 @@ class ColorClientChannel(ClientChannel): @registries.BINDABLE_CLUSTERS.register(lighting.Color.cluster_id) -@registries.LIGHT_CLUSTERS.register(lighting.Color.cluster_id) @registries.ZIGBEE_CHANNEL_REGISTRY.register(lighting.Color.cluster_id) class ColorChannel(ZigbeeChannel): """Color channel.""" diff --git a/homeassistant/components/zha/core/channels/measurement.py b/homeassistant/components/zha/core/channels/measurement.py index 949b7cbc138..64db1aa82ac 100644 --- a/homeassistant/components/zha/core/channels/measurement.py +++ b/homeassistant/components/zha/core/channels/measurement.py @@ -36,7 +36,6 @@ class IlluminanceMeasurement(ZigbeeChannel): REPORT_CONFIG = [{"attr": "measured_value", "config": REPORT_CONFIG_DEFAULT}] -@registries.BINARY_SENSOR_CLUSTERS.register(measurement.OccupancySensing.cluster_id) @registries.ZIGBEE_CHANNEL_REGISTRY.register(measurement.OccupancySensing.cluster_id) class OccupancySensing(ZigbeeChannel): """Occupancy Sensing channel.""" diff --git a/homeassistant/components/zha/core/channels/security.py b/homeassistant/components/zha/core/channels/security.py index 156ada1e8f1..e37987bc821 100644 --- a/homeassistant/components/zha/core/channels/security.py +++ b/homeassistant/components/zha/core/channels/security.py @@ -109,7 +109,6 @@ class IasWd(ZigbeeChannel): ) -@registries.BINARY_SENSOR_CLUSTERS.register(security.IasZone.cluster_id) @registries.ZIGBEE_CHANNEL_REGISTRY.register(security.IasZone.cluster_id) class IASZoneChannel(ZigbeeChannel): """Channel for the IASZone Zigbee cluster.""" diff --git a/homeassistant/components/zha/core/registries.py b/homeassistant/components/zha/core/registries.py index 81521748da0..e2b4056cfaa 100644 --- a/homeassistant/components/zha/core/registries.py +++ b/homeassistant/components/zha/core/registries.py @@ -25,7 +25,6 @@ from .typing import ChannelType GROUP_ENTITY_DOMAINS = [LIGHT, SWITCH, FAN] PHILLIPS_REMOTE_CLUSTER = 0xFC00 - SMARTTHINGS_ACCELERATION_CLUSTER = 0xFC02 SMARTTHINGS_ARRIVAL_SENSOR_DEVICE_TYPE = 0x8000 SMARTTHINGS_HUMIDITY_CLUSTER = 0xFC45 @@ -80,15 +79,8 @@ SINGLE_OUTPUT_CLUSTER_DEVICE_CLASS = { zcl.clusters.general.OnOff.cluster_id: BINARY_SENSOR } -SWITCH_CLUSTERS = SetRegistry() - -BINARY_SENSOR_CLUSTERS = SetRegistry() -BINARY_SENSOR_CLUSTERS.add(SMARTTHINGS_ACCELERATION_CLUSTER) - BINDABLE_CLUSTERS = SetRegistry() CHANNEL_ONLY_CLUSTERS = SetRegistry() -CLIMATE_CLUSTERS = SetRegistry() -CUSTOM_CLUSTER_MAPPINGS = {} DEVICE_CLASS = { zigpy.profiles.zha.PROFILE_ID: { @@ -119,19 +111,7 @@ DEVICE_CLASS = { } DEVICE_CLASS = collections.defaultdict(dict, DEVICE_CLASS) -DEVICE_TRACKER_CLUSTERS = SetRegistry() -LIGHT_CLUSTERS = SetRegistry() -OUTPUT_CHANNEL_ONLY_CLUSTERS = SetRegistry() CLIENT_CHANNELS_REGISTRY = DictRegistry() - -COMPONENT_CLUSTERS = { - BINARY_SENSOR: BINARY_SENSOR_CLUSTERS, - CLIMATE: CLIMATE_CLUSTERS, - DEVICE_TRACKER: DEVICE_TRACKER_CLUSTERS, - LIGHT: LIGHT_CLUSTERS, - SWITCH: SWITCH_CLUSTERS, -} - ZIGBEE_CHANNEL_REGISTRY = DictRegistry()