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

Minor typo in error message

Jason Rumney пре 6 година
родитељ
комит
86edb4f333
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      custom_components/tuya_local/switch.py

+ 1 - 1
custom_components/tuya_local/switch.py

@@ -21,7 +21,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
         discovery_info[CONF_TYPE] = await device.async_inferred_type()
 
         if discovery_info[CONF_TYPE] is None:
-            raise ValueError(f"Unable to detecttype for device {device.name}")
+            raise ValueError(f"Unable to detect type for device {device.name}")
 
     if discovery_info[CONF_TYPE] == CONF_TYPE_KOGAN_SWITCH:
         data[CONF_SWITCH] = KoganSocketSwitch(device)