Преглед изворни кода

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)