Explorar o código

fix (light): remove override of light toggle

When originally writing this, I assumed all functions should be defined by the integration.
The function was a copy of the generic light implementation from 2018.
Since then they seem to have quietly added parameters to the light toggle service, but
since we overrode it, the change was not reflected in tuya-local

Issue #4839
Jason Rumney hai 2 meses
pai
achega
b92d0fdc63
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      custom_components/tuya_local/light.py

+ 0 - 3
custom_components/tuya_local/light.py

@@ -558,6 +558,3 @@ class TuyaLocalLight(TuyaLocalEntity, LightEntity):
             await self._effect_dps.async_set_value(self._device, "off")
         else:
             raise NotImplementedError()
-
-    async def async_toggle(self):
-        await (self.async_turn_off() if self.is_on else self.async_turn_on())