Merge pull request #669 from pavoni/handle-efergy_value_error

Trap and trace error rather than throwing exception when efergy server
This commit is contained in:
Paulus Schoutsen 2015-11-27 10:27:45 -08:00
commit 47eb4e76cf

View file

@ -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)