mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix SamsungTV shutdown race condition (#57149)
This commit is contained in:
parent
7e5dfadc27
commit
9de3bd77d8
@ -133,7 +133,7 @@ class SamsungTVDevice(MediaPlayerEntity):
|
||||
|
||||
def update(self) -> None:
|
||||
"""Update state of device."""
|
||||
if self._auth_failed:
|
||||
if self._auth_failed or self.hass.is_stopping:
|
||||
return
|
||||
if self._power_off_in_progress():
|
||||
self._state = STATE_OFF
|
||||
|
Loading…
x
Reference in New Issue
Block a user