hass-core/homeassistant/components/switch_as_x/const.py
Erik Montnemery 4b2b4ae36b
Add invert option to switch_as_x ()
* Add invert option to switch_as_x

* Store invert flag in entity options

* Add options flow

* Update strings

* Add tests

* Address review comment

* Update homeassistant/components/switch_as_x/strings.json

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Address review comments

* Inline get_suggested which was only used once in tests

* Address review comments

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-01-24 16:35:08 +01:00

8 lines
181 B
Python

"""Constants for the Switch as X integration."""
from typing import Final
DOMAIN: Final = "switch_as_x"
CONF_INVERT: Final = "invert"
CONF_TARGET_DOMAIN: Final = "target_domain"