Refactor LaMetric integration (#76759)
* Refactor LaMetric integration * Use async_setup Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * use async_get_service Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update tests/components/lametric/conftest.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update tests/components/lametric/conftest.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Pass hassconfig * Remove try/catch * Fix passing hassconfig * Use menu Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
071cae2c0b
commit
71cdc1645b
20 changed files with 1385 additions and 173 deletions
|
@ -7,10 +7,8 @@ DOMAIN: Final = "lametric"
|
|||
|
||||
LOGGER = logging.getLogger(__package__)
|
||||
|
||||
AVAILABLE_PRIORITIES: Final = ["info", "warning", "critical"]
|
||||
AVAILABLE_ICON_TYPES: Final = ["none", "info", "alert"]
|
||||
|
||||
CONF_CYCLES: Final = "cycles"
|
||||
CONF_ICON_TYPE: Final = "icon_type"
|
||||
CONF_LIFETIME: Final = "lifetime"
|
||||
CONF_PRIORITY: Final = "priority"
|
||||
CONF_ICON_TYPE: Final = "icon_type"
|
||||
CONF_SOUND: Final = "sound"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue