Commit Graph

2 Commits (e628508ff523687898bdfeeea2dd41a0336f418b)

Author SHA1 Message Date
Dustin e628508ff5 mqtt_discovery: Add state_class, entity_category
Populating these options helps Home Assistant display the sensors better
in the UI.

The `publish_client` function has too many parameters as it is, making
it difficult to keep track of which value is passed as which argument.
Using a structure and designated initializers makes this a lot cleaner.
2022-05-16 21:17:20 -05:00
Dustin 87c4833a10 Initial commit 2022-05-08 20:34:58 -05:00