Skip to content

Commit 52ee779

Browse files
Lash-LCopilot
andauthored
chore: update roborock/devices/device_manager.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 107d3de commit 52ee779

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

roborock/devices/device_manager.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ def device_creator(home_data: HomeData, device: HomeDataDevice, product: HomeDat
204204
elif "sc" in product.model.strip(".")[-1]:
205205
# Q7 devices start with 'sc' in their model naming.
206206
trait = b01.q7.create(channel)
207+
else:
208+
raise NotImplementedError(
209+
f"Device {device.name} has unsupported B01 model: {product.model}"
210+
)
207211
case _:
208212
raise NotImplementedError(f"Device {device.name} has unsupported version {device.pv}")
209213
return RoborockDevice(device, product, channel, trait)

0 commit comments

Comments
 (0)