mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Print a message when reconnected after a connection failure, requirement for IQS silver (#20261)
This commit is contained in:
committed by
Paulus Schoutsen
parent
62844e237c
commit
e69ca810e4
@@ -180,6 +180,8 @@ class SongpalDevice(MediaPlayerDevice):
|
|||||||
await self.async_update_ha_state(force_refresh=True)
|
await self.async_update_ha_state(force_refresh=True)
|
||||||
delay = min(2*delay, 300)
|
delay = min(2*delay, 300)
|
||||||
|
|
||||||
|
_LOGGER.info("Reconnected to %s", self.name)
|
||||||
|
|
||||||
self.dev.on_notification(VolumeChange, _volume_changed)
|
self.dev.on_notification(VolumeChange, _volume_changed)
|
||||||
self.dev.on_notification(ContentChange, _source_changed)
|
self.dev.on_notification(ContentChange, _source_changed)
|
||||||
self.dev.on_notification(PowerChange, _power_changed)
|
self.dev.on_notification(PowerChange, _power_changed)
|
||||||
|
Reference in New Issue
Block a user