Fix Roborock status not correctly mapping for some devices (#115646)

Use device_info.model instead of name
This commit is contained in:
Luke Lashley 2024-04-20 22:57:05 -04:00 committed by GitHub
parent 29bfed72f7
commit d8117fd2bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,9 @@ async def setup_device(
home_data_rooms: list[HomeDataRoom],
) -> RoborockDataUpdateCoordinator | None:
"""Set up a device Coordinator."""
mqtt_client = RoborockMqttClientV1(user_data, DeviceData(device, product_info.name))
mqtt_client = RoborockMqttClientV1(
user_data, DeviceData(device, product_info.model)
)
try:
networking = await mqtt_client.get_networking()
if networking is None: