Răsfoiți Sursa

Functions that take arguments cannot be properties.

Jason Rumney 5 ani în urmă
părinte
comite
8bd23aafc5
1 a modificat fișierele cu 0 adăugiri și 2 ștergeri
  1. 0 2
      custom_components/tuya_local/helpers/device_config.py

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

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