瀏覽代碼

Fix typo in hass reference.

More unit tests are needed to cover the device initialisation and configuration.
Jason Rumney 4 年之前
父節點
當前提交
c01d6bc01d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      custom_components/tuya_local/__init__.py

+ 1 - 1
custom_components/tuya_local/__init__.py

@@ -71,7 +71,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
             hass.config_entries.async_forward_entry_setup(entry, "humidifier")
         )
     if config.get(CONF_FAN, False) is True:
-        has.async_create_task(
+        hass.async_create_task(
             hass.config_entries.async_forward_entry_setup(entry, "fan")
         )
     entry.add_update_listener(async_update_entry)