Skip to content

Commit

Permalink
fix access key with none (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwentao authored Jun 21, 2024
1 parent ee04a9b commit 2318038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/midea_ac_lan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
model: str = config_entry.data[CONF_MODEL]
subtype = config_entry.data.get(CONF_SUBTYPE, 0)
protocol: int = config_entry.data[CONF_PROTOCOL]
customize: str = config_entry.options[CONF_CUSTOMIZE]
customize: str = config_entry.options.get(CONF_CUSTOMIZE, "")
if protocol == 3 and (key == "" or token == ""):
_LOGGER.error("For V3 devices, the key and the token is required")
return False
Expand Down

0 comments on commit 2318038

Please sign in to comment.