ZHA binary_sensor cleanup. (#30149)
This commit is contained in:
parent
d4ff214fce
commit
fdaaabf070
1 changed files with 1 additions and 8 deletions
|
@ -46,13 +46,6 @@ CLASS_MAPPING = {
|
|||
STRICT_MATCH = functools.partial(ZHA_ENTITIES.strict_match, DOMAIN)
|
||||
|
||||
|
||||
DEVICE_CLASS_REGISTRY = {
|
||||
CHANNEL_ACCELEROMETER: DEVICE_CLASS_MOVING,
|
||||
CHANNEL_OCCUPANCY: DEVICE_CLASS_OCCUPANCY,
|
||||
CHANNEL_ON_OFF: DEVICE_CLASS_OPENING,
|
||||
}
|
||||
|
||||
|
||||
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
||||
"""Old way of setting up Zigbee Home Automation binary sensors."""
|
||||
pass
|
||||
|
@ -152,7 +145,7 @@ class BinarySensor(ZhaEntity, BinarySensorDevice):
|
|||
class Accelerometer(BinarySensor):
|
||||
"""ZHA BinarySensor."""
|
||||
|
||||
DEVICE_CLASS = DEVICE_CLASS_MOTION
|
||||
DEVICE_CLASS = DEVICE_CLASS_MOVING
|
||||
|
||||
|
||||
@STRICT_MATCH(MatchRule(channel_names={CHANNEL_OCCUPANCY}))
|
||||
|
|
Loading…
Add table
Reference in a new issue