From e6493d9c945afee580bb7c4b708c601f5c606e27 Mon Sep 17 00:00:00 2001 From: javicalle <31999997+javicalle@users.noreply.github.com> Date: Wed, 25 May 2022 19:34:34 +0200 Subject: [PATCH] Clean TuyaLevelControl attributes `LevelControl` already has the `current_level` attribute: * https://github.com/zigpy/zigpy/blob/b166e2e1f22c49bad201d7ecdf202f0fc9b7b087/zigpy/zcl/clusters/general.py#L700 This code is remanent from PR #1526 --- zhaquirks/tuya/mcu/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/zhaquirks/tuya/mcu/__init__.py b/zhaquirks/tuya/mcu/__init__.py index 9277ea4da8..a0faf407c6 100644 --- a/zhaquirks/tuya/mcu/__init__.py +++ b/zhaquirks/tuya/mcu/__init__.py @@ -406,9 +406,6 @@ class MoesSwitchManufCluster(TuyaOnOffManufCluster): class TuyaLevelControl(LevelControl, TuyaLocalCluster): """Tuya MCU Level cluster for dimmable device.""" - attributes = LevelControl.attributes.copy() - attributes.update({0x0000: ("current_level", t.uint8_t)}) - async def command( self, command_id: Union[foundation.GeneralCommand, int, t.uint8_t],