Tweak recorder/restore_state (#6412)

* Tweak recorder/restore_state

* Lint
This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2017-03-05 10:52:08 +01:00
1 parent 2650c73a89
commit e8a22cb4a8
4 files changed
+51 -31

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ def test_caching_data(hass):
patch('homeassistant.helpers.restore_state.get_states',
return_value=states), \
patch('homeassistant.helpers.restore_state.wait_connection_ready',
return_value=mock_coro()):
return_value=mock_coro(True)):
state = yield from async_get_last_state(hass, 'input_boolean.b1')
assert DATA_RESTORE_CACHE in hass.data