Fix initial Wall Connector values in Tessie (#121353)

This commit is contained in:
Brett Adams 2024-07-06 18:54:09 +10:00 committed by GitHub
parent cce77affc7
commit 294c31f6f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -42,6 +42,7 @@ class TessieBaseEntity(
self.key = key
self._attr_translation_key = key
super().__init__(coordinator)
self._async_update_attrs()
@property
def _value(self) -> Any:
@ -132,7 +133,6 @@ class TessieEnergyEntity(TessieBaseEntity):
self._attr_device_info = data.device
super().__init__(coordinator, key)
self._async_update_attrs()
class TessieWallConnectorEntity(TessieBaseEntity):

View File

@ -2120,7 +2120,7 @@
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
'state': '0.0',
})
# ---
# name: test_sensors[sensor.wall_connector_power_2-entry]
@ -2177,7 +2177,7 @@
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
'state': '0.0',
})
# ---
# name: test_sensors[sensor.wall_connector_state-entry]
@ -2249,7 +2249,7 @@
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
'state': 'disconnected',
})
# ---
# name: test_sensors[sensor.wall_connector_state_2-entry]
@ -2321,7 +2321,7 @@
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
'state': 'disconnected',
})
# ---
# name: test_sensors[sensor.wall_connector_vehicle-entry]