Store capabilities and supported features in entity registry, restore registered entities on startup (#30094)

* Store capabilities and supported features in entity registry

* Restore states at startup

* Restore non-disabled entities on HA start

* Fix test

* Pass device class from entity platform

* Clean up restored entities from state machine

* Fix Z-Wave test?
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-12-31 14:29:43 +01:00
1 parent 2c1a7a54cd
commit bb14a083f0
8 files changed
+293 -18

No files matched your search

+1
View File
@@ -130,6 +130,7 @@ async def test_auto_heal_midnight(hass, mock_openzwave):
time = utc.localize(datetime(2017, 5, 6, 0, 0, 0))
async_fire_time_changed(hass, time)
await hass.async_block_till_done()
await hass.async_block_till_done()
assert network.heal.called
assert len(network.heal.mock_calls) == 1