Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def is_on(self) -> bool: """Return True if entity is on.""" return self._state == SWITCHER_STATE_ON
Switcher Python Integration.