浏览代码

Fix type in GECO lock discovery.

Jason Rumney 6 年之前
父节点
当前提交
cdbb5ae4ee
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      custom_components/goldair_climate/lock.py

+ 1 - 1
custom_components/goldair_climate/lock.py

@@ -29,7 +29,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
         data[CONF_CHILD_LOCK] = GoldairDehumidifierChildLock(device)
     elif discovery_info[CONF_TYPE] == CONF_TYPE_FAN:
         raise ValueError("Goldair fans do not support child lock.")
-    elif discovery_info[CONF_TYPE] == CONF_TYPE_GECO_HEARER:
+    elif discovery_info[CONF_TYPE] == CONF_TYPE_GECO_HEATER:
         data[CONF_CHILD_LOCK] = GoldairGECOHeaterChildLock(device)
     elif discovery_info[CONF_TYPE] == CONF_TYPE_GPCV_HEATER:
         data[CONF_CHILD_LOCK] = GoldairGPCVHeaterChildLock(device)