Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions homeassistant/components/androidtv/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,11 @@ def device_state_attributes(self):
"""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."""
Expand Down Expand Up @@ -497,11 +502,6 @@ def get_raw_media_data(self):
"""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."""
Expand Down