deeb288daff33241286edfc1b1e07c7af02bf87c,homeassistant/components/media_player/directv.py,DirecTvDevice,update,#DirecTvDevice#,92
Before Change
def update(self):
Retrieve latest state.
self._is_standby = self.dtv.get_standby()
if self._is_standby:
self._current = None
else:
self._current = self.dtv.get_tuned()
@property
def name(self):
Return the name of the device.
return self._name
After Change
self._current = None
self._is_recorded = None
self._paused = None
self._assumed_state = False
self._last_position = None
self._last_update = None
else:
self._current = self.dtv.get_tuned()
self._is_recorded = self._current.get("uniqueId") is not None
self._paused = self._last_position == self._current["offset"]
self._assumed_state = self._is_recorded
self._last_position = self._current["offset"]
self._last_update = dt_util.now() if not self._paused or\
self._last_update is None else self._last_update
@property
def device_state_attributes(self):
Return device specific state attributes.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: home-assistant/home-assistant
Commit Name: deeb288daff33241286edfc1b1e07c7af02bf87c
Time: 2018-10-29
Author: hendrix_erik@hotmail.com
File Name: homeassistant/components/media_player/directv.py
Class Name: DirecTvDevice
Method Name: update
Project Name: polyaxon/polyaxon
Commit Name: 29a0a613e0bdb69be72e4f7b3580fb6fee59a2e7
Time: 2018-06-16
Author: mouradmourafiq@gmail.com
File Name: polyaxon/signals/experiment_groups.py
Class Name:
Method Name: experiment_group_status_post_save
Project Name: home-assistant/home-assistant
Commit Name: deeb288daff33241286edfc1b1e07c7af02bf87c
Time: 2018-10-29
Author: hendrix_erik@hotmail.com
File Name: homeassistant/components/media_player/directv.py
Class Name: DirecTvDevice
Method Name: update
Project Name: OpenMined/Grid
Commit Name: 08ea864ad378589d333082b221060d215f9439e1
Time: 2020-07-06
Author: hericles.me@gmail.com
File Name: grid/app/main/cycles/cycle_manager.py
Class Name: CycleManager
Method Name: complete_cycle