File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
homeassistant/components/husqvarna_automower
tests/components/husqvarna_automower/snapshots Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -89,12 +89,12 @@ def __init__(
8989 """Initialize AutomowerEntity."""
9090 super ().__init__ (coordinator )
9191 self .mower_id = mower_id
92+ parts = self .mower_attributes .system .model .split (maxsplit = 2 )
9293 self ._attr_device_info = DeviceInfo (
9394 identifiers = {(DOMAIN , mower_id )},
94- manufacturer = "Husqvarna" ,
95- model = self .mower_attributes .system .model .removeprefix (
96- "HUSQVARNA "
97- ).removeprefix ("Husqvarna " ),
95+ manufacturer = parts [0 ],
96+ model = parts [1 ],
97+ model_id = parts [2 ],
9898 name = self .mower_attributes .system .name ,
9999 serial_number = self .mower_attributes .system .serial_number ,
100100 suggested_area = "Garden" ,
Original file line number Diff line number Diff line change 1919 }),
2020 'labels': set({
2121 }),
22- 'manufacturer': 'Husqvarna ',
23- 'model': 'AUTOMOWER® 450XH ',
24- 'model_id': None ,
22+ 'manufacturer': 'HUSQVARNA ',
23+ 'model': 'AUTOMOWER®',
24+ 'model_id': '450XH' ,
2525 'name': 'Test Mower 1',
2626 'name_by_user': None,
2727 'primary_config_entry': <ANY>,
You can’t perform that action at this time.
0 commit comments