Fix reporting of battery sensor for Tesla (#31232)
* Fix reporting of battery sensor for Tesla * Remove try
This commit is contained in:
parent
61a8618010
commit
bcdef4e500
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue