parameters: (self)
docstring: Return if switch is on.
docstring_summary: Return if switch is on.
docstring_tokens: Return if switch is on .
function: def is_on(self):
          """Return if switch is on."""
          if self.coordinator.data:
              if self.coordinator.data["appVersionCode"] < 784:
                  return self.coordinator.data["currentFragment"] == "screensaver"
              return self.coordinator.data["isInScreensaver"]
function_tokens: def is_on ( self ) : if self . coordinator . data : if self . coordinator . data [ "appVersionCode" ] < 784 : return self . coordinator . data [ "currentFragment" ] == "screensaver" return self . coordinator . data [ "isInScreensaver" ]