Просмотр исходного кода

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 2 месяцев назад
Родитель
Сommit
b92d0fdc63
1 измененных файлов с 0 добавлено и 3 удалено
  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())