mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
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:
parent
17750a604e
commit
55031e6ea4
@ -3,7 +3,7 @@
|
|||||||
"name": "Androidtv",
|
"name": "Androidtv",
|
||||||
"documentation": "https://www.home-assistant.io/components/androidtv",
|
"documentation": "https://www.home-assistant.io/components/androidtv",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"androidtv==0.0.23"
|
"androidtv==0.0.24"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": ["@JeffLIrion"]
|
"codeowners": ["@JeffLIrion"]
|
||||||
|
@ -270,6 +270,9 @@ class ADBDevice(MediaPlayerDevice):
|
|||||||
self._apps.update(apps)
|
self._apps.update(apps)
|
||||||
self._keys = KEYS
|
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_on_command = turn_on_command
|
||||||
self.turn_off_command = turn_off_command
|
self.turn_off_command = turn_off_command
|
||||||
|
|
||||||
@ -338,6 +341,11 @@ class ADBDevice(MediaPlayerDevice):
|
|||||||
"""Return the state of the player."""
|
"""Return the state of the player."""
|
||||||
return self._state
|
return self._state
|
||||||
|
|
||||||
|
@property
|
||||||
|
def unique_id(self):
|
||||||
|
"""Return the device unique id."""
|
||||||
|
return self._unique_id
|
||||||
|
|
||||||
@adb_decorator()
|
@adb_decorator()
|
||||||
def media_play(self):
|
def media_play(self):
|
||||||
"""Send play command."""
|
"""Send play command."""
|
||||||
@ -412,9 +420,7 @@ class AndroidTVDevice(ADBDevice):
|
|||||||
super().__init__(aftv, name, apps, turn_on_command, turn_off_command)
|
super().__init__(aftv, name, apps, turn_on_command, turn_off_command)
|
||||||
|
|
||||||
self._device = None
|
self._device = None
|
||||||
self._device_properties = self.aftv.device_properties
|
|
||||||
self._is_volume_muted = None
|
self._is_volume_muted = None
|
||||||
self._unique_id = self._device_properties.get("serialno")
|
|
||||||
self._volume_level = None
|
self._volume_level = None
|
||||||
|
|
||||||
@adb_decorator(override_available=True)
|
@adb_decorator(override_available=True)
|
||||||
@ -454,11 +460,6 @@ class AndroidTVDevice(ADBDevice):
|
|||||||
"""Flag media player features that are supported."""
|
"""Flag media player features that are supported."""
|
||||||
return SUPPORT_ANDROIDTV
|
return SUPPORT_ANDROIDTV
|
||||||
|
|
||||||
@property
|
|
||||||
def unique_id(self):
|
|
||||||
"""Return the device unique id."""
|
|
||||||
return self._unique_id
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def volume_level(self):
|
def volume_level(self):
|
||||||
"""Return the volume level."""
|
"""Return the volume level."""
|
||||||
|
@ -194,7 +194,7 @@ ambiclimate==0.2.0
|
|||||||
amcrest==1.5.3
|
amcrest==1.5.3
|
||||||
|
|
||||||
# homeassistant.components.androidtv
|
# homeassistant.components.androidtv
|
||||||
androidtv==0.0.23
|
androidtv==0.0.24
|
||||||
|
|
||||||
# homeassistant.components.anel_pwrctrl
|
# homeassistant.components.anel_pwrctrl
|
||||||
anel_pwrctrl-homeassistant==0.0.1.dev2
|
anel_pwrctrl-homeassistant==0.0.1.dev2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user