diff --git a/homeassistant/components/zha/binary_sensor.py b/homeassistant/components/zha/binary_sensor.py index e6176fe9da3..df95d408398 100644 --- a/homeassistant/components/zha/binary_sensor.py +++ b/homeassistant/components/zha/binary_sensor.py @@ -102,7 +102,6 @@ async def _async_setup_entities( class BinarySensor(ZhaEntity, BinarySensorDevice): """ZHA BinarySensor.""" - _domain = DOMAIN _device_class = None def __init__(self, **kwargs): diff --git a/homeassistant/components/zha/entity.py b/homeassistant/components/zha/entity.py index 108d8e27a9f..102472d25b0 100644 --- a/homeassistant/components/zha/entity.py +++ b/homeassistant/components/zha/entity.py @@ -30,8 +30,6 @@ RESTART_GRACE_PERIOD = 7200 # 2 hours class ZhaEntity(RestoreEntity, LogMixin, entity.Entity): """A base class for ZHA entities.""" - _domain = None # Must be overridden by subclasses - def __init__(self, unique_id, zha_device, channels, skip_entity_id=False, **kwargs): """Init ZHA entity.""" self._force_update = False diff --git a/homeassistant/components/zha/fan.py b/homeassistant/components/zha/fan.py index 43ad2291cb7..bccdf260a11 100644 --- a/homeassistant/components/zha/fan.py +++ b/homeassistant/components/zha/fan.py @@ -87,8 +87,6 @@ async def _async_setup_entities( class ZhaFan(ZhaEntity, FanEntity): """Representation of a ZHA fan.""" - _domain = DOMAIN - def __init__(self, unique_id, zha_device, channels, **kwargs): """Init this sensor.""" super().__init__(unique_id, zha_device, channels, **kwargs) diff --git a/homeassistant/components/zha/light.py b/homeassistant/components/zha/light.py index fb388afac0f..08d74f9fdb3 100644 --- a/homeassistant/components/zha/light.py +++ b/homeassistant/components/zha/light.py @@ -80,8 +80,6 @@ async def _async_setup_entities( class Light(ZhaEntity, light.Light): """Representation of a ZHA or ZLL light.""" - _domain = light.DOMAIN - def __init__(self, unique_id, zha_device, channels, **kwargs): """Initialize the ZHA light.""" super().__init__(unique_id, zha_device, channels, **kwargs) diff --git a/homeassistant/components/zha/lock.py b/homeassistant/components/zha/lock.py index a2151b4bdcb..2458bf4be5b 100644 --- a/homeassistant/components/zha/lock.py +++ b/homeassistant/components/zha/lock.py @@ -70,8 +70,6 @@ async def _async_setup_entities( class ZhaDoorLock(ZhaEntity, LockDevice): """Representation of a ZHA lock.""" - _domain = DOMAIN - def __init__(self, unique_id, zha_device, channels, **kwargs): """Init this sensor.""" super().__init__(unique_id, zha_device, channels, **kwargs) diff --git a/homeassistant/components/zha/sensor.py b/homeassistant/components/zha/sensor.py index e9d21be6132..26dc25c71dc 100644 --- a/homeassistant/components/zha/sensor.py +++ b/homeassistant/components/zha/sensor.py @@ -109,7 +109,6 @@ class Sensor(ZhaEntity): _decimals = 1 _device_class = None _divisor = 1 - _domain = DOMAIN _multiplier = 1 _unit = None diff --git a/homeassistant/components/zha/switch.py b/homeassistant/components/zha/switch.py index bfe816d614a..03296e8a553 100644 --- a/homeassistant/components/zha/switch.py +++ b/homeassistant/components/zha/switch.py @@ -60,8 +60,6 @@ async def _async_setup_entities( class Switch(ZhaEntity, SwitchDevice): """ZHA switch.""" - _domain = DOMAIN - def __init__(self, **kwargs): """Initialize the ZHA switch.""" super().__init__(**kwargs)