Bump ha-philipsjs to 2.7.0 (#49008)

This has some improvements to not consider the TV
off due to some exceptions that is related to API
being buggy rather than off.
This commit is contained in:
Joakim Plate 2021-04-11 08:42:32 +02:00 committed by GitHub
parent e68678e336
commit 62182ea460
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View file

@ -134,8 +134,12 @@ class PhilipsTVDataUpdateCoordinator(DataUpdateCoordinator[None]):
async def _notify_task(self): async def _notify_task(self):
while self.api.on and self.api.notify_change_supported: while self.api.on and self.api.notify_change_supported:
if await self.api.notifyChange(130): res = await self.api.notifyChange(130)
if res:
self.async_set_updated_data(None) self.async_set_updated_data(None)
elif res is None:
LOGGER.debug("Aborting notify due to unexpected return")
break
@callback @callback
def _async_notify_stop(self): def _async_notify_stop(self):

View file

@ -3,7 +3,7 @@
"name": "Philips TV", "name": "Philips TV",
"documentation": "https://www.home-assistant.io/integrations/philips_js", "documentation": "https://www.home-assistant.io/integrations/philips_js",
"requirements": [ "requirements": [
"ha-philipsjs==2.3.2" "ha-philipsjs==2.7.0"
], ],
"codeowners": [ "codeowners": [
"@elupus" "@elupus"

View file

@ -720,7 +720,7 @@ guppy3==3.1.0
ha-ffmpeg==3.0.2 ha-ffmpeg==3.0.2
# homeassistant.components.philips_js # homeassistant.components.philips_js
ha-philipsjs==2.3.2 ha-philipsjs==2.7.0
# homeassistant.components.habitica # homeassistant.components.habitica
habitipy==0.2.0 habitipy==0.2.0

View file

@ -393,7 +393,7 @@ guppy3==3.1.0
ha-ffmpeg==3.0.2 ha-ffmpeg==3.0.2
# homeassistant.components.philips_js # homeassistant.components.philips_js
ha-philipsjs==2.3.2 ha-philipsjs==2.7.0
# homeassistant.components.habitica # homeassistant.components.habitica
habitipy==0.2.0 habitipy==0.2.0