mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Fix Fibaro HC light switches not being configured as Light entities (#37690)
This commit is contained in:
parent
d119c96aee
commit
5b3d094a1e
@ -227,10 +227,7 @@ class FibaroController:
|
|||||||
device_type = "sensor"
|
device_type = "sensor"
|
||||||
|
|
||||||
# Switches that control lights should show up as lights
|
# Switches that control lights should show up as lights
|
||||||
if (
|
if device_type == "switch" and device.properties.get("isLight", False):
|
||||||
device_type == "switch"
|
|
||||||
and device.properties.get("isLight", "false") == "true"
|
|
||||||
):
|
|
||||||
device_type = "light"
|
device_type = "light"
|
||||||
return device_type
|
return device_type
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user