mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Update bool test in coordinator platform for Squeezebox (#149073)
This commit is contained in:
parent
31167f5da7
commit
7202203f35
@ -111,7 +111,7 @@ class SqueezeBoxPlayerUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]):
|
|||||||
# Only update players available at last update, unavailable players are rediscovered instead
|
# Only update players available at last update, unavailable players are rediscovered instead
|
||||||
await self.player.async_update()
|
await self.player.async_update()
|
||||||
|
|
||||||
if self.player.connected is False:
|
if not self.player.connected:
|
||||||
_LOGGER.info("Player %s is not available", self.name)
|
_LOGGER.info("Player %s is not available", self.name)
|
||||||
self.available = False
|
self.available = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user