Bump androidtv to 0.0.24 (#26158)

* Bump androidtv to 0.0.24

* Add unique ID for Fire TV (not just Android TV)
This commit is contained in:
Jeff Irion 2019-08-23 06:58:24 -07:00 committed by Pascal Vizeli
parent 17750a604e
commit 55031e6ea4
3 changed files with 10 additions and 9 deletions

View File

@ -3,7 +3,7 @@
"name": "Androidtv",
"documentation": "https://www.home-assistant.io/components/androidtv",
"requirements": [
"androidtv==0.0.23"
"androidtv==0.0.24"
],
"dependencies": [],
"codeowners": ["@JeffLIrion"]

View File

@ -270,6 +270,9 @@ class ADBDevice(MediaPlayerDevice):
self._apps.update(apps)
self._keys = KEYS
self._device_properties = self.aftv.device_properties
self._unique_id = self._device_properties.get("serialno")
self.turn_on_command = turn_on_command
self.turn_off_command = turn_off_command
@ -338,6 +341,11 @@ class ADBDevice(MediaPlayerDevice):
"""Return the state of the player."""
return self._state
@property
def unique_id(self):
"""Return the device unique id."""
return self._unique_id
@adb_decorator()
def media_play(self):
"""Send play command."""
@ -412,9 +420,7 @@ class AndroidTVDevice(ADBDevice):
super().__init__(aftv, name, apps, turn_on_command, turn_off_command)
self._device = None
self._device_properties = self.aftv.device_properties
self._is_volume_muted = None
self._unique_id = self._device_properties.get("serialno")
self._volume_level = None
@adb_decorator(override_available=True)
@ -454,11 +460,6 @@ class AndroidTVDevice(ADBDevice):
"""Flag media player features that are supported."""
return SUPPORT_ANDROIDTV
@property
def unique_id(self):
"""Return the device unique id."""
return self._unique_id
@property
def volume_level(self):
"""Return the volume level."""

View File

@ -194,7 +194,7 @@ ambiclimate==0.2.0
amcrest==1.5.3
# homeassistant.components.androidtv
androidtv==0.0.23
androidtv==0.0.24
# homeassistant.components.anel_pwrctrl
anel_pwrctrl-homeassistant==0.0.1.dev2