Fix handling of single user (#7587)

This commit is contained in:
John Mihalic 2017-05-15 03:46:43 -04:00 committed by Paulus Schoutsen
parent 4da91d6a8b
commit a1dc35fc75
2 changed files with 5 additions and 2 deletions

View File

@ -24,7 +24,7 @@ from homeassistant.helpers.entity import Entity
from homeassistant.helpers.event import async_track_point_in_utc_time
from homeassistant.util.dt import utcnow
REQUIREMENTS = ['pyeight==0.0.4']
REQUIREMENTS = ['pyeight==0.0.5']
_LOGGER = logging.getLogger(__name__)
@ -145,6 +145,9 @@ def async_setup(hass, config):
sensors.append('{}_{}'.format(obj.side, sensor))
binary_sensors.append('{}_presence'.format(obj.side))
sensors.append('room_temp')
else:
# No users, cannot continue
return False
hass.async_add_job(discovery.async_load_platform(
hass, 'sensor', DOMAIN, {

View File

@ -527,7 +527,7 @@ pydroid-ipcam==0.8
pyebox==0.1.0
# homeassistant.components.eight_sleep
pyeight==0.0.4
pyeight==0.0.5
# homeassistant.components.media_player.emby
pyemby==1.2