mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Add Freebox Home alarm panel (#102607)
* add alarm control panel * optimize update node * Modify comment * move const to alarm * add alarm panel tests * tests modified * add file into coveragerc * Review: DATA_HOME_GET_VALUES -> DATA_HOME_PIR_GET_VALUES * Review: commands rename * Review: precise what "alarm2" is for features * Review: remove custom attributes & properties that exists in parent * Review: Avoid duplicates of async_write_ha_state() * make functions private * Review: initial state never works * Review: remove extra attrs * Review: fix tests * Fix tests * Remove line in .coveragerc --------- Co-authored-by: Quentame <polletquentin74@me.com>
This commit is contained in:
@@ -10,7 +10,7 @@ from .const import (
|
||||
DATA_CALL_GET_CALLS_LOG,
|
||||
DATA_CONNECTION_GET_STATUS,
|
||||
DATA_HOME_GET_NODES,
|
||||
DATA_HOME_GET_VALUES,
|
||||
DATA_HOME_PIR_GET_VALUES,
|
||||
DATA_LAN_GET_HOSTS_LIST,
|
||||
DATA_STORAGE_GET_DISKS,
|
||||
DATA_STORAGE_GET_RAIDS,
|
||||
@@ -81,7 +81,7 @@ def mock_router(mock_device_registry_devices):
|
||||
# home devices
|
||||
instance.home.get_home_nodes = AsyncMock(return_value=DATA_HOME_GET_NODES)
|
||||
instance.home.get_home_endpoint_value = AsyncMock(
|
||||
return_value=DATA_HOME_GET_VALUES
|
||||
return_value=DATA_HOME_PIR_GET_VALUES
|
||||
)
|
||||
instance.close = AsyncMock()
|
||||
yield service_mock
|
||||
|
||||
Reference in New Issue
Block a user