mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +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,
|
||||
observe=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}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user