mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 02:58:23 +00:00
Fix Android TV icon when screencap option is disabled (#35710)
* Don't return a media image hash if the screencap config option is False * 1-liner
This commit is contained in:
parent
d1be3c8268
commit
dc00fa9c27
@ -452,6 +452,11 @@ class ADBDevice(MediaPlayerEntity):
|
||||
"""Provide the last ADB command's response as an attribute."""
|
||||
return {"adb_response": self._adb_response}
|
||||
|
||||
@property
|
||||
def media_image_hash(self):
|
||||
"""Hash value for media image."""
|
||||
return f"{datetime.now().timestamp()}" if self._screencap else None
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the device name."""
|
||||
@ -497,11 +502,6 @@ class ADBDevice(MediaPlayerEntity):
|
||||
"""Raw image data."""
|
||||
return self.aftv.adb_screencap()
|
||||
|
||||
@property
|
||||
def media_image_hash(self):
|
||||
"""Hash value for media image."""
|
||||
return f"{datetime.now().timestamp()}"
|
||||
|
||||
@adb_decorator()
|
||||
def media_play(self):
|
||||
"""Send play command."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user