Hound comments (#4464)

This commit is contained in:
John Arild Berentsen 2016-11-19 09:46:02 +01:00 committed by GitHub
parent 679d500e61
commit 2b320f23fc

View file

@ -110,9 +110,9 @@ class NeatoConnectedSensor(Entity):
self._status_state = 'Stopped' self._status_state = 'Stopped'
elif self._state['state'] == 2: elif self._state['state'] == 2:
if ALERTS.get(self._state['error']) is None: if ALERTS.get(self._state['error']) is None:
self._status_state = (MODE.get( self._status_state = (
self._state['cleaning']['mode']) + ' ' + MODE.get(self._state['cleaning']['mode'])
ACTION.get(self._state['action'])) + ' ' + ACTION.get(self._state['action']))
else: else:
self._status_state = ALERTS.get(self._state['error']) self._status_state = ALERTS.get(self._state['error'])
elif self._state['state'] == 3: elif self._state['state'] == 3: