mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Fix handling of single user (#7587)
This commit is contained in:
parent
4da91d6a8b
commit
a1dc35fc75
@ -24,7 +24,7 @@ from homeassistant.helpers.entity import Entity
|
|||||||
from homeassistant.helpers.event import async_track_point_in_utc_time
|
from homeassistant.helpers.event import async_track_point_in_utc_time
|
||||||
from homeassistant.util.dt import utcnow
|
from homeassistant.util.dt import utcnow
|
||||||
|
|
||||||
REQUIREMENTS = ['pyeight==0.0.4']
|
REQUIREMENTS = ['pyeight==0.0.5']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -145,6 +145,9 @@ def async_setup(hass, config):
|
|||||||
sensors.append('{}_{}'.format(obj.side, sensor))
|
sensors.append('{}_{}'.format(obj.side, sensor))
|
||||||
binary_sensors.append('{}_presence'.format(obj.side))
|
binary_sensors.append('{}_presence'.format(obj.side))
|
||||||
sensors.append('room_temp')
|
sensors.append('room_temp')
|
||||||
|
else:
|
||||||
|
# No users, cannot continue
|
||||||
|
return False
|
||||||
|
|
||||||
hass.async_add_job(discovery.async_load_platform(
|
hass.async_add_job(discovery.async_load_platform(
|
||||||
hass, 'sensor', DOMAIN, {
|
hass, 'sensor', DOMAIN, {
|
||||||
|
@ -527,7 +527,7 @@ pydroid-ipcam==0.8
|
|||||||
pyebox==0.1.0
|
pyebox==0.1.0
|
||||||
|
|
||||||
# homeassistant.components.eight_sleep
|
# homeassistant.components.eight_sleep
|
||||||
pyeight==0.0.4
|
pyeight==0.0.5
|
||||||
|
|
||||||
# homeassistant.components.media_player.emby
|
# homeassistant.components.media_player.emby
|
||||||
pyemby==1.2
|
pyemby==1.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user