Skip to content

Commit

Permalink
Support Solo3s (#65)
Browse files Browse the repository at this point in the history
- Update ref image in /static for solo3s (uc-05.png)
- Add logic in entity.pt to decode 05 model (3s) and return relevant image for entity status logo

Co-authored-by: munaaf <munaafg2004@hotmail.com>
  • Loading branch information
mattrayner and munaaf authored Sep 16, 2024
1 parent b68bc27 commit e02c66d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/pod_point/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,12 @@ def __pod_image(self, model: str) -> str:
model_type = "2C"

img = model_type

if model_id == "03":
img = f"{model_type}-{model_id}"

if model_id == "05":
img = f"{model_type}-{model_id}"

return f"{APP_IMAGE_URL_BASE}/{img.lower()}.png"

Expand Down
Binary file added custom_components/pod_point/static/uc-05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e02c66d

Please sign in to comment.