Skip to content

Commit 53b576a

Browse files
committed
Add icon_url property to device for retrieving product icon URL
1 parent 4d585b7 commit 53b576a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

custom_components/petlibro/devices/device.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ def software_version(self) -> str:
9898
def hardware_version(self) -> str:
9999
return cast(str, self._data.get("hardwareVersion"))
100100

101+
@property
102+
def icon_url(self) -> str | None:
103+
"""Product icon URL from the device list API response."""
104+
return self._data.get("icon")
105+
101106
@property
102107
def boundPets(self) -> list[dict]:
103108
return self._data.get("boundPets") or []

custom_components/petlibro/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"iot_class": "cloud_polling",
1111
"issue_tracker": "https://github.com/jjjonesjr33/petlibro/issues",
1212
"loggers": ["petlibro"],
13-
"version": "1.3.0"
13+
"version": "1.3.1"
1414
}

0 commit comments

Comments
 (0)