Explorar o código

Stupid python syntax

Python has to be different
Jason Rumney %!s(int64=5) %!d(string=hai) anos
pai
achega
2d1f0bf95d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      custom_components/tuya_local/config_flow.py

+ 1 - 1
custom_components/tuya_local/config_flow.py

@@ -68,4 +68,4 @@ class OptionsFlowHandler(config_entries.OptionsFlow):
 async def async_test_connection(config: dict, hass: HomeAssistant):
     device = TuyaLocalDevice("Test", config[CONF_DEVICE_ID], config[CONF_HOST], config[CONF_LOCAL_KEY], hass)
     await device.async_refresh()
-    return device.get_property("1") is not None || device.get_property("3") is not None
+    return device.get_property("1") is not None or device.get_property("3") is not None