Skip to content

Commit

Permalink
Enable Refresh Channels to be done during standby as well as active (#68
Browse files Browse the repository at this point in the history
)

I'm getting spurious 404 errors from the load_source_list logic in pySonyBraviaPSK. More detail in the PR.
  • Loading branch information
RogerSelwyn authored Mar 12, 2022
1 parent bfd45b5 commit 3f582b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/braviatv_psk/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,11 @@ async def async_update(self):
power_status = await self.hass.async_add_executor_job(
self._braviarc.get_power_status
)
if power_status in ["active", "standby"]:
await self._async_refresh_channels()
if power_status == "active":
self._state = STATE_ON
await self._async_refresh_volume()
await self._async_refresh_channels()
playing_info = await self.hass.async_add_executor_job(
self._braviarc.get_playing_info
)
Expand Down

0 comments on commit 3f582b4

Please sign in to comment.