소스 검색

Functions that take arguments cannot be properties.

Jason Rumney 5 년 전
부모
커밋
8bd23aafc5
1개의 변경된 파일과 0개의 추가작업 그리고 2개의 파일을 삭제
  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):
         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():