Skip to content

Commit

Permalink
Hue motion senors are motion sensors, not presence sensors. (#23193)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellrj authored and balloob committed Apr 20, 2019
1 parent 7eebf46 commit a3c3c41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions homeassistant/components/hue/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -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)

Expand All @@ -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)
Expand Down

0 comments on commit a3c3c41

Please sign in to comment.