Explorar o código

Fix syntax error that was missed by unit tests.

Strange, because a test for autodetection was added and passed.
Jason Rumney %!s(int64=5) %!d(string=hai) anos
pai
achega
613dfd73c7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      custom_components/tuya_local/climate.py

+ 1 - 1
custom_components/tuya_local/climate.py

@@ -48,7 +48,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
         data[CONF_CLIMATE] = GoldairGPCVHeater(device)
         data[CONF_CLIMATE] = GoldairGPCVHeater(device)
     elif discovery_info[CONF_TYPE] == CONF_TYPE_KOGAN_HEATER:
     elif discovery_info[CONF_TYPE] == CONF_TYPE_KOGAN_HEATER:
         data[CONF_CLIMATE] = KoganHeater(device)
         data[CONF_CLIMATE] = KoganHeater(device)
-    elif discovery_info{CONF_TYPE] == CONF_TYPE_GSH_HEATER:
+    elif discovery_info[CONF_TYPE] == CONF_TYPE_GSH_HEATER:
         data[CONF_CLIMATE] = AnderssonGSHHeater(device)
         data[CONF_CLIMATE] = AnderssonGSHHeater(device)
     else:
     else:
         raise ValueError("This device does not support working as a climate device")
         raise ValueError("This device does not support working as a climate device")