Procházet zdrojové kódy

Fix typo in hass reference.

More unit tests are needed to cover the device initialisation and configuration.
Jason Rumney před 4 roky
rodič
revize
c01d6bc01d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)