Skip to content

Commit

Permalink
Fix model in Husqvarna Automower (#128168)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas55555 authored and frenck committed Oct 11, 2024
1 parent 0ccff9f commit d389b55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion homeassistant/components/husqvarna_automower/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ def __init__(
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, mower_id)},
manufacturer="Husqvarna",
model=self.mower_attributes.system.model,
model=self.mower_attributes.system.model.removeprefix(
"HUSQVARNA "
).removeprefix("Husqvarna "),
name=self.mower_attributes.system.name,
serial_number=self.mower_attributes.system.serial_number,
suggested_area="Garden",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'labels': set({
}),
'manufacturer': 'Husqvarna',
'model': 'HUSQVARNA AUTOMOWER® 450XH',
'model': 'AUTOMOWER® 450XH',
'model_id': None,
'name': 'Test Mower 1',
'name_by_user': None,
Expand Down

0 comments on commit d389b55

Please sign in to comment.