We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4370d30 commit 1a0d3dfCopy full SHA for 1a0d3df
roborock/cli.py
@@ -117,8 +117,11 @@ async def home_data_cache() -> HomeData:
117
118
click.echo("MQTT session started. Querying devices...")
119
for device in devices:
120
+ if not (status_trait := device.traits.get("status")):
121
+ click.echo(f"Device {device.name} does not have a status trait")
122
+ continue
123
try:
- status = await device.get_status()
124
+ status = await status_trait.get_status()
125
except RoborockException as e:
126
click.echo(f"Failed to get status for {device.name}: {e}")
127
else:
0 commit comments