9e1ecd7124af55e84d113a63d189262faafa5ad0,tests/components/test_history.py,TestComponentHistory,test_state_changes_during_period,#TestComponentHistory#,107
Before Change
return self.hass.states.get(entity_id)
set_state("idle")
set_state("YouTube")
start = dt_util.utcnow()
point = start + timedelta(seconds=1)
After Change
point = start + timedelta(seconds=1)
end = point + timedelta(seconds=1)
with patch("homeassistant.components.recorder.dt_util.utcnow",
return_value=start):
set_state("idle")
set_state("YouTube")
with patch("homeassistant.components.recorder.dt_util.utcnow",
return_value=point):
states = [
set_state("idle"),
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: home-assistant/home-assistant
Commit Name: 9e1ecd7124af55e84d113a63d189262faafa5ad0
Time: 2015-12-27
Author: paulus.schoutsen@mycase.com
File Name: tests/components/test_history.py
Class Name: TestComponentHistory
Method Name: test_state_changes_during_period
Project Name: senarvi/theanolm
Commit Name: bcf723a2f67a372e6b03a453149a82ecf2766fff
Time: 2015-12-24
Author: seppo.git@marjaniemi.com
File Name: theanolm/commands/sample.py
Class Name:
Method Name: sample
Project Name: home-assistant/home-assistant
Commit Name: cfc23b0091d55b53eef9654fe0e9134ac12b8c38
Time: 2015-09-12
Author: paulus@paulusschoutsen.nl
File Name: tests/components/test_history.py
Class Name: TestComponentHistory
Method Name: test_state_changes_during_period
Project Name: senarvi/theanolm
Commit Name: bcf723a2f67a372e6b03a453149a82ecf2766fff
Time: 2015-12-24
Author: seppo.git@marjaniemi.com
File Name: theanolm/commands/score.py
Class Name:
Method Name: score