Procházet zdrojové kódy

Functions that take arguments cannot be properties.

Jason Rumney před 4 roky
rodič
revize
8bd23aafc5

+ 0 - 2
custom_components/tuya_local/helpers/device_config.py

@@ -135,7 +135,6 @@ class TuyaDpsConfig:
     def isreadonly(self):
         return "readonly" in self.__config.keys() and self.__config["readonly"] is True
 
-    @property
     def map_from_dps(self, value):
         result = value
         if "mapping" in self.__config.keys():
@@ -151,7 +150,6 @@ class TuyaDpsConfig:
                     )
         return result
 
-    @property
     def map_to_dps(self, value):
         result = value
         if "mapping" in self.__config.keys():