Fix Freebox Home alarm & improve platform tests (#103475)
* Fix Freebox Home alarm * Add trigger feature test & fix * FreeboxCallSensor: Add test for missing coverage of new call * Use generator Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Add test for arm_home feature (questions about the check) * Stay focus on alam tests * can_arm_home ==> if _command_arm_home * Use one liner for supported_features * Add idle state * Fix rebase --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
6d7df5ae13
commit
923c13907c
12 changed files with 186 additions and 151 deletions
|
@ -21,7 +21,9 @@ DATA_STORAGE_GET_DISKS = load_json_array_fixture("freebox/storage_get_disks.json
|
|||
DATA_STORAGE_GET_RAIDS = load_json_array_fixture("freebox/storage_get_raids.json")
|
||||
|
||||
# switch
|
||||
WIFI_GET_GLOBAL_CONFIG = load_json_object_fixture("freebox/wifi_get_global_config.json")
|
||||
DATA_WIFI_GET_GLOBAL_CONFIG = load_json_object_fixture(
|
||||
"freebox/wifi_get_global_config.json"
|
||||
)
|
||||
|
||||
# device_tracker
|
||||
DATA_LAN_GET_HOSTS_LIST = load_json_array_fixture("freebox/lan_get_hosts_list.json")
|
||||
|
@ -35,10 +37,14 @@ DATA_HOME_GET_NODES = load_json_array_fixture("freebox/home_get_nodes.json")
|
|||
|
||||
# Home
|
||||
# PIR node id 26, endpoint id 6
|
||||
DATA_HOME_PIR_GET_VALUES = load_json_object_fixture("freebox/home_pir_get_values.json")
|
||||
DATA_HOME_PIR_GET_VALUE = load_json_object_fixture("freebox/home_pir_get_value.json")
|
||||
|
||||
# Home
|
||||
# ALARM node id 7, endpoint id 11
|
||||
DATA_HOME_ALARM_GET_VALUES = load_json_object_fixture(
|
||||
"freebox/home_alarm_get_values.json"
|
||||
DATA_HOME_ALARM_GET_VALUE = load_json_object_fixture(
|
||||
"freebox/home_alarm_get_value.json"
|
||||
)
|
||||
|
||||
# Home
|
||||
# Set a node value with success
|
||||
DATA_HOME_SET_VALUE = load_json_object_fixture("freebox/home_set_value.json")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue