Tesla bug fixes. (#9774)
* Tesla bug fixes. * Added myself to CODEOWNERS for tesla.
This commit is contained in:
parent
43d77729c5
commit
9abd0fb92f
8 changed files with 60 additions and 10 deletions
|
@ -30,7 +30,6 @@ class TeslaBinarySensor(TeslaDevice, BinarySensorDevice):
|
|||
def __init__(self, tesla_device, controller, sensor_type):
|
||||
"""Initialisation of binary sensor."""
|
||||
super().__init__(tesla_device, controller)
|
||||
self._name = self.tesla_device.name
|
||||
self._state = False
|
||||
self.entity_id = ENTITY_ID_FORMAT.format(self.tesla_id)
|
||||
self._sensor_type = sensor_type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue