Beispiel #1
0
 def turn_on(self, **kwargs):
     """Instruct the light to turn on."""
     import greenwavereality as greenwave
     temp_brightness = int((kwargs.get(ATTR_BRIGHTNESS, 255) / 255) * 100)
     greenwave.set_brightness(self._host, self._did, temp_brightness,
                              self.token)
     greenwave.turn_on(self._host, self._did, self.token)
Beispiel #2
0
 def turn_on(self, **kwargs):
     """Instruct the light to turn on."""
     import greenwavereality as greenwave
     temp_brightness = int((kwargs.get(ATTR_BRIGHTNESS, 255)
                            / 255) * 100)
     greenwave.set_brightness(self._host, self._did,
                              temp_brightness, self._token)
     greenwave.turn_on(self._host, self._did, self._token)
Beispiel #3
0
 def turn_on(self, **kwargs: Any) -> None:
     """Instruct the light to turn on."""
     temp_brightness = int((kwargs.get(ATTR_BRIGHTNESS, 255) / 255) * 100)
     greenwave.set_brightness(self._host, self._did, temp_brightness,
                              self._token)
     greenwave.turn_on(self._host, self._did, self._token)