Print a message when reconnected after a connection failure, requirement for IQS silver (#20261)

This commit is contained in:
Teemu R 2019-01-21 01:36:01 +01:00 committed by Paulus Schoutsen
parent 62844e237c
commit e69ca810e4

View file

@ -180,6 +180,8 @@ class SongpalDevice(MediaPlayerDevice):
await self.async_update_ha_state(force_refresh=True)
delay = min(2*delay, 300)
_LOGGER.info("Reconnected to %s", self.name)
self.dev.on_notification(VolumeChange, _volume_changed)
self.dev.on_notification(ContentChange, _source_changed)
self.dev.on_notification(PowerChange, _power_changed)