Add HomematicIP alarm control panel (#15342)
* Add HomematicIP security zone * Update access point tests * Fix state if not armed and coments * Add comment for the empty state_attributes * Fix comment * Fix spelling
This commit is contained in:
1 parent
b557c17f76
commit
4a6afc5614
4 files changed
+106
-4
No files matched your search
@@ -65,8 +65,10 @@ 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) == 5
|
||||
assert len(hass.config_entries.async_forward_entry_setup.mock_calls) == 6
|
||||
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] == \
|
||||
(entry, 'binary_sensor')
|
||||
|
||||
|
||||
@@ -104,10 +106,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) == 5
|
||||
assert len(hass.config_entries.async_forward_entry_setup.mock_calls) == 6
|
||||
|
||||
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) == 5
|
||||
assert len(hass.config_entries.async_forward_entry_unload.mock_calls) == 6
|
||||
Reference in new issue
Block a user