Fix Fibaro HC light switches not being configured as Light entities (#37690)

This commit is contained in:
Daniel Pervan 2020-07-14 22:47:05 +02:00 committed by GitHub
parent d119c96aee
commit 5b3d094a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,10 +227,7 @@ class FibaroController:
device_type = "sensor"
# Switches that control lights should show up as lights
if (
device_type == "switch"
and device.properties.get("isLight", "false") == "true"
):
if device_type == "switch" and device.properties.get("isLight", False):
device_type = "light"
return device_type