mirror of
https://github.com/home-assistant/core.git
synced 2026-10-06 01:41:44 +01:00
Fix NoEntitySpecifiedError in SamsungTV (#68880)
This commit is contained in:
1 parent
f053fc9167
commit
a5c729b724
1 file changed
+2
-1
@@ -325,7 +325,8 @@ class SamsungTVDevice(MediaPlayerEntity):
|
||||
self, service: UpnpService, state_variables: Sequence[UpnpStateVariable]
|
||||
) -> None:
|
||||
"""State variable(s) changed, let home-assistant know."""
|
||||
if self._update_from_upnp():
|
||||
# Ensure the entity has been added to hass to avoid race condition
|
||||
if self._update_from_upnp() and self.entity_id:
|
||||
self.async_write_ha_state()
|
||||
|
||||
async def _async_launch_app(self, app_id: str) -> None:
|
||||
|
||||
Reference in new issue
Block a user