mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Mock tradfri lights correctly (#39706)
This commit is contained in:
parent
3b88452b2f
commit
36632f64f1
@ -135,6 +135,10 @@ def mock_light(test_features=None, test_state=None, light_number=0):
|
|||||||
reachable=True,
|
reachable=True,
|
||||||
observe=Mock(),
|
observe=Mock(),
|
||||||
device_info=dev_info_mock,
|
device_info=dev_info_mock,
|
||||||
|
has_light_control=True,
|
||||||
|
has_socket_control=False,
|
||||||
|
has_blind_control=False,
|
||||||
|
has_signal_repeater_control=False,
|
||||||
)
|
)
|
||||||
_mock_light.name = f"tradfri_light_{light_number}"
|
_mock_light.name = f"tradfri_light_{light_number}"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user