Skip to content

Commit 254ccca

Browse files
mback2kfrenck
authored andcommitted
Fix warning about failure to get action during setup phase (home-assistant#148923)
1 parent 5b08724 commit 254ccca

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

homeassistant/components/wmspro/button.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async def async_setup_entry(
2323
entities: list[WebControlProGenericEntity] = [
2424
WebControlProIdentifyButton(config_entry.entry_id, dest)
2525
for dest in hub.dests.values()
26-
if dest.action(WMS_WebControl_pro_API_actionDescription.Identify)
26+
if dest.hasAction(WMS_WebControl_pro_API_actionDescription.Identify)
2727
]
2828

2929
async_add_entities(entities)

homeassistant/components/wmspro/cover.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ async def async_setup_entry(
3232

3333
entities: list[WebControlProGenericEntity] = []
3434
for dest in hub.dests.values():
35-
if dest.action(WMS_WebControl_pro_API_actionDescription.AwningDrive):
35+
if dest.hasAction(WMS_WebControl_pro_API_actionDescription.AwningDrive):
3636
entities.append(WebControlProAwning(config_entry.entry_id, dest))
37-
elif dest.action(
37+
elif dest.hasAction(
3838
WMS_WebControl_pro_API_actionDescription.RollerShutterBlindDrive
3939
):
4040
entities.append(WebControlProRollerShutter(config_entry.entry_id, dest))

homeassistant/components/wmspro/light.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ async def async_setup_entry(
3333

3434
entities: list[WebControlProGenericEntity] = []
3535
for dest in hub.dests.values():
36-
if dest.action(WMS_WebControl_pro_API_actionDescription.LightDimming):
36+
if dest.hasAction(WMS_WebControl_pro_API_actionDescription.LightDimming):
3737
entities.append(WebControlProDimmer(config_entry.entry_id, dest))
38-
elif dest.action(WMS_WebControl_pro_API_actionDescription.LightSwitch):
38+
elif dest.hasAction(WMS_WebControl_pro_API_actionDescription.LightSwitch):
3939
entities.append(WebControlProLight(config_entry.entry_id, dest))
4040

4141
async_add_entities(entities)

homeassistant/components/wmspro/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"documentation": "https://www.home-assistant.io/integrations/wmspro",
1515
"integration_type": "hub",
1616
"iot_class": "local_polling",
17-
"requirements": ["pywmspro==0.3.0"]
17+
"requirements": ["pywmspro==0.3.2"]
1818
}

requirements_all.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements_test_all.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)