mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 07:25:52 -05:00
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:
committed by
Martin Hjelmare
parent
a8ef7a2774
commit
89ba374d51
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user