Ver código fonte

Fix syntax error that was missed by unit tests.

Strange, because a test for autodetection was added and passed.
Jason Rumney 5 anos atrás
pai
commit
613dfd73c7
1 arquivos alterados com 1 adições e 1 exclusões
  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")