Bump pyunifiprotect to v4.22.5 (#106781)

This commit is contained in:
Christopher Bailey 2023-12-31 14:26:21 -05:00 committed by GitHub
parent 80f8102b83
commit ce54a1259a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 77 additions and 3 deletions

View file

@ -133,6 +133,17 @@ class ProtectMediaPlayer(ProtectDeviceEntity, MediaPlayerEntity):
or self._attr_volume_level != previous_volume_level
or self._attr_available != previous_available
):
_LOGGER.debug(
"Updating state [%s (%s)] %s (%s, %s) -> %s (%s, %s)",
device.name,
device.mac,
previous_state,
previous_available,
previous_volume_level,
self._attr_state,
self._attr_available,
self._attr_volume_level,
)
self.async_write_ha_state()
async def async_set_volume_level(self, volume: float) -> None: