Skip to content

Commit

Permalink
Don't use private function
Browse files Browse the repository at this point in the history
  • Loading branch information
rikroe committed May 22, 2022
1 parent c4821c3 commit 3334d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/bmw_connected_drive/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 3334d58

Please sign in to comment.