Fix reporting of battery sensor for Tesla (#31232)

* Fix reporting of battery sensor for Tesla

* Remove try
This commit is contained in:
Alan Tse authored and GitHub committed 2020-01-29 08:58:43 +01:00
1 parent 61a8618010
commit bcdef4e500
2 files changed
+3

No files matched your search

@@ -55,3 +55,4 @@ class TeslaBinarySensor(TeslaDevice, BinarySensorDevice):
_LOGGER.debug("Updating sensor: %s", self._name)
await super().async_update()
self._state = self.tesla_device.get_value()
self._attributes = self.tesla_device.attrs