Hue motion senors are motion sensors, not presence sensors. (#23193)

This commit is contained in:
Richard Mitchell 2019-04-18 16:53:02 +01:00 committed by Paulus Schoutsen
parent 11fb4866a8
commit f57191e8dd

View file

@ -1,5 +1,6 @@
"""Hue binary sensor entities."""
from homeassistant.components.binary_sensor import BinarySensorDevice
from homeassistant.components.binary_sensor import (
BinarySensorDevice, DEVICE_CLASS_MOTION)
from homeassistant.components.hue.sensor_base import (
GenericZLLSensor, async_setup_entry as shared_async_setup_entry)
@ -16,7 +17,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
class HuePresence(GenericZLLSensor, BinarySensorDevice):
"""The presence sensor entity for a Hue motion sensor device."""
device_class = 'presence'
device_class = DEVICE_CLASS_MOTION
async def _async_update_ha_state(self, *args, **kwargs):
await self.async_update_ha_state(self, *args, **kwargs)