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:
Quentame 2023-11-20 15:01:18 +01:00 committed by GitHub
parent 6d7df5ae13
commit 923c13907c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 186 additions and 151 deletions

View file

@ -1,4 +1,4 @@
"""Tests for the Freebox config flow."""
"""Tests for the Freebox init."""
from unittest.mock import ANY, Mock, patch
from pytest_unordered import unordered