Update Philips js to v0.0.8 (#23462)

* Don't send volume on volume set

This needs updated lib

* Bump version and avoid getting channels explicitly

* Add myself as codeowner

* Use version 0.0.8 instead which doesn't reuse session

Some TV's doesn't play nice with HTTP/1.1 connection
re-use.

* Add new requirement to requirements_all.txt
This commit is contained in:
Joakim Plate 2019-04-29 03:27:35 +02:00 committed by Charles Garwood
parent 0f49a9cb7b
commit b4a7980084
4 changed files with 5 additions and 6 deletions

View File

@ -169,6 +169,7 @@ homeassistant/components/owlet/* @oblogic7
homeassistant/components/panel_custom/* @home-assistant/core
homeassistant/components/panel_iframe/* @home-assistant/core
homeassistant/components/persistent_notification/* @home-assistant/core
homeassistant/components/philips_js/* @elupus
homeassistant/components/pi_hole/* @fabaff
homeassistant/components/plant/* @ChristianKuehnel
homeassistant/components/point/* @fredrike

View File

@ -3,8 +3,8 @@
"name": "Philips js",
"documentation": "https://www.home-assistant.io/components/philips_js",
"requirements": [
"ha-philipsjs==0.0.6"
"ha-philipsjs==0.0.8"
],
"dependencies": [],
"codeowners": []
"codeowners": ["@elupus"]
}

View File

@ -197,7 +197,7 @@ class PhilipsTV(MediaPlayerDevice):
def mute_volume(self, mute):
"""Send mute command."""
self._tv.setVolume(self._tv.volume, mute)
self._tv.setVolume(None, mute)
self._update_soon(DELAY_ACTION_DEFAULT)
def set_volume_level(self, volume):
@ -270,8 +270,6 @@ class PhilipsTV(MediaPlayerDevice):
def update(self):
"""Get the latest data and update device state."""
self._tv.update()
self._tv.getChannelId()
self._tv.getChannels()
self._sources = {
srcid: source['name'] or "Source {}".format(srcid)

View File

@ -515,7 +515,7 @@ gstreamer-player==1.1.2
ha-ffmpeg==2.0
# homeassistant.components.philips_js
ha-philipsjs==0.0.6
ha-philipsjs==0.0.8
# homeassistant.components.habitica
habitipy==0.2.0