mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix Roborock status not correctly mapping for some devices (#115646)
Use device_info.model instead of name
This commit is contained in:
parent
29bfed72f7
commit
d8117fd2bd
@ -107,7 +107,9 @@ async def setup_device(
|
|||||||
home_data_rooms: list[HomeDataRoom],
|
home_data_rooms: list[HomeDataRoom],
|
||||||
) -> RoborockDataUpdateCoordinator | None:
|
) -> RoborockDataUpdateCoordinator | None:
|
||||||
"""Set up a device Coordinator."""
|
"""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:
|
try:
|
||||||
networking = await mqtt_client.get_networking()
|
networking = await mqtt_client.get_networking()
|
||||||
if networking is None:
|
if networking is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user