From 3334d58e8df274813c7031590fcd35c50e5616b5 Mon Sep 17 00:00:00 2001 From: rikroe Date: Sun, 22 May 2022 15:59:17 +0200 Subject: [PATCH] Don't use private function --- custom_components/bmw_connected_drive/lock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/bmw_connected_drive/lock.py b/custom_components/bmw_connected_drive/lock.py index 8c477c7..0c2c5a1 100644 --- a/custom_components/bmw_connected_drive/lock.py +++ b/custom_components/bmw_connected_drive/lock.py @@ -63,7 +63,7 @@ async def async_lock(self, **kwargs: Any) -> None: # Optimistic state set here because it takes some time before the # update callback response self._attr_is_locked = True - self._async_write_ha_state() + self.async_write_ha_state() await self.vehicle.remote_services.trigger_remote_door_lock() async def async_unlock(self, **kwargs: Any) -> None: @@ -74,7 +74,7 @@ async def async_unlock(self, **kwargs: Any) -> None: # Optimistic state set here because it takes some time before the # update callback response self._attr_is_locked = False - self._async_write_ha_state() + self.async_write_ha_state() await self.vehicle.remote_services.trigger_remote_door_unlock() @callback