Skip to content

Commit

Permalink
- Add the product type to the name when the actual product name is un…
Browse files Browse the repository at this point in the history
…known
  • Loading branch information
oyvindkinsey committed Dec 10, 2024
1 parent 2208e49 commit 07dafd0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ Added several small improvements, leaving the package in a reasonable usable sta

## 1.3.4 2024-12-09
- Remove use of retained messages and subcribe to Home Assistant's birth message instead

## 1.3.6 2024-12-09
- Add the product type to the name when the actual product name is unknown
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = avionmqtt
version = 1.3.5
version = 1.3.6
author = Sean Kinsey
author_email = [email protected]
description = A python library to bridge between Avi-on based lights and Home Assistant using MQTT
Expand Down
2 changes: 1 addition & 1 deletion src/avionmqtt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def mqtt_register(mqtt: aiomqtt.Client, entity: dict):
"identifiers": [pid],
"name": name,
"manufacturer": "Avi-on",
"model": PRODUCT_NAMES.get(product_id, "Unknown"),
"model": PRODUCT_NAMES.get(product_id, f"Unknown product ({product_id})"),
"serial_number": pid,
},
}
Expand Down

0 comments on commit 07dafd0

Please sign in to comment.