HomematicIP add cover FROLL and BROLL devices (#19794)

* Add cover FROLL and BROLL devices

* Fix import

* Fix async calls

* Update cover functions and async fixes

* Update test

* Cleanup code

* Update header

* Merge imports

* Update

* Remove init

* Update coveragerc file

* Update coveragerc
This commit is contained in:
Mattias Welponer
2019-01-22 09:22:45 +01:00
committed by Martin Hjelmare
parent a8ef7a2774
commit 89ba374d51
4 changed files with 76 additions and 4 deletions
@@ -65,7 +65,7 @@ async def test_hap_setup_works(aioclient_mock):
assert await hap.async_setup() is True
assert hap.home is home
assert len(hass.config_entries.async_forward_entry_setup.mock_calls) == 6
assert len(hass.config_entries.async_forward_entry_setup.mock_calls) == 7
assert hass.config_entries.async_forward_entry_setup.mock_calls[0][1] == \
(entry, 'alarm_control_panel')
assert hass.config_entries.async_forward_entry_setup.mock_calls[1][1] == \
@@ -107,10 +107,10 @@ async def test_hap_reset_unloads_entry_if_setup():
assert hap.home is home
assert len(hass.services.async_register.mock_calls) == 0
assert len(hass.config_entries.async_forward_entry_setup.mock_calls) == 6
assert len(hass.config_entries.async_forward_entry_setup.mock_calls) == 7
hass.config_entries.async_forward_entry_unload.return_value = \
mock_coro(True)
await hap.async_reset()
assert len(hass.config_entries.async_forward_entry_unload.mock_calls) == 6
assert len(hass.config_entries.async_forward_entry_unload.mock_calls) == 7