mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Fix warning about failure to get action during setup phase (#148923)
This commit is contained in:
parent
61807412c4
commit
15f7dade5e
@ -23,7 +23,7 @@ async def async_setup_entry(
|
||||
entities: list[WebControlProGenericEntity] = [
|
||||
WebControlProIdentifyButton(config_entry.entry_id, dest)
|
||||
for dest in hub.dests.values()
|
||||
if dest.action(WMS_WebControl_pro_API_actionDescription.Identify)
|
||||
if dest.hasAction(WMS_WebControl_pro_API_actionDescription.Identify)
|
||||
]
|
||||
|
||||
async_add_entities(entities)
|
||||
|
@ -32,9 +32,9 @@ async def async_setup_entry(
|
||||
|
||||
entities: list[WebControlProGenericEntity] = []
|
||||
for dest in hub.dests.values():
|
||||
if dest.action(WMS_WebControl_pro_API_actionDescription.AwningDrive):
|
||||
if dest.hasAction(WMS_WebControl_pro_API_actionDescription.AwningDrive):
|
||||
entities.append(WebControlProAwning(config_entry.entry_id, dest))
|
||||
elif dest.action(
|
||||
elif dest.hasAction(
|
||||
WMS_WebControl_pro_API_actionDescription.RollerShutterBlindDrive
|
||||
):
|
||||
entities.append(WebControlProRollerShutter(config_entry.entry_id, dest))
|
||||
|
@ -33,9 +33,9 @@ async def async_setup_entry(
|
||||
|
||||
entities: list[WebControlProGenericEntity] = []
|
||||
for dest in hub.dests.values():
|
||||
if dest.action(WMS_WebControl_pro_API_actionDescription.LightDimming):
|
||||
if dest.hasAction(WMS_WebControl_pro_API_actionDescription.LightDimming):
|
||||
entities.append(WebControlProDimmer(config_entry.entry_id, dest))
|
||||
elif dest.action(WMS_WebControl_pro_API_actionDescription.LightSwitch):
|
||||
elif dest.hasAction(WMS_WebControl_pro_API_actionDescription.LightSwitch):
|
||||
entities.append(WebControlProLight(config_entry.entry_id, dest))
|
||||
|
||||
async_add_entities(entities)
|
||||
|
@ -14,5 +14,5 @@
|
||||
"documentation": "https://www.home-assistant.io/integrations/wmspro",
|
||||
"integration_type": "hub",
|
||||
"iot_class": "local_polling",
|
||||
"requirements": ["pywmspro==0.3.0"]
|
||||
"requirements": ["pywmspro==0.3.2"]
|
||||
}
|
||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -2603,7 +2603,7 @@ pywilight==0.0.74
|
||||
pywizlight==0.6.3
|
||||
|
||||
# homeassistant.components.wmspro
|
||||
pywmspro==0.3.0
|
||||
pywmspro==0.3.2
|
||||
|
||||
# homeassistant.components.ws66i
|
||||
pyws66i==1.1
|
||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -2161,7 +2161,7 @@ pywilight==0.0.74
|
||||
pywizlight==0.6.3
|
||||
|
||||
# homeassistant.components.wmspro
|
||||
pywmspro==0.3.0
|
||||
pywmspro==0.3.2
|
||||
|
||||
# homeassistant.components.ws66i
|
||||
pyws66i==1.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user