How to use the aioswitcher.consts.WAITING_TEXT function in aioswitcher

To help you get started, we’ve selected a few aioswitcher examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github home-assistant / home-assistant / homeassistant / components / switcher_kis / switch.py View on Github external
def device_state_attributes(self) -> Dict:
        """Return the optional state attributes."""

        attribs = {}

        for prop, attr in DEVICE_PROPERTIES_TO_HA_ATTRIBUTES.items():
            value = getattr(self._device_data, prop)
            if value and value is not WAITING_TEXT:
                attribs[attr] = value

        return attribs

aioswitcher

Switcher Python Integration.

Apache-2.0
Latest version published 5 days ago

Package Health Score

78 / 100
Full package analysis

Similar packages