mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix directv attribute media_position_updated_at (#92383)
* Fix directv attribute media_position_updated_at Fix to update media_position_updated_at attribute when media_position attribute is updated. * Do not update media_position_updated_at when paused
This commit is contained in:
parent
ace45f31ff
commit
7e165021a3
@ -112,7 +112,8 @@ class DIRECTVMediaPlayer(DIRECTVEntity, MediaPlayerEntity):
|
||||
self._paused = self._last_position == self._program.position
|
||||
self._is_recorded = self._program.recorded
|
||||
self._last_position = self._program.position
|
||||
self._last_update = state.at
|
||||
if not self._paused:
|
||||
self._last_update = dt_util.utcnow()
|
||||
self._attr_assumed_state = self._is_recorded
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user