mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Trap and trace error rather than throwing exception when efergy server
This commit is contained in:
parent
4c3d6981a6
commit
00f0dfb971
@ -97,5 +97,5 @@ class EfergySensor(Entity):
|
||||
self._state = response.json()['sum']
|
||||
else:
|
||||
self._state = 'Unknown'
|
||||
except RequestException:
|
||||
except (RequestException, ValueError):
|
||||
_LOGGER.warning('Could not update status for %s', self.name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user