File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
homeassistant/components/tuya Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -52,26 +52,6 @@ def parse_dptype(dptype: str) -> DPType | None:
5252 return _DPTYPE_MAPPING .get (dptype )
5353
5454
55- def get_dptype (
56- device : CustomerDevice , dpcode : DPCode | None , * , prefer_function : bool = False
57- ) -> DPType | None :
58- """Find a matching DPType type information for this device DPCode."""
59- if dpcode is None :
60- return None
61-
62- lookup_tuple = (
63- (device .function , device .status_range )
64- if prefer_function
65- else (device .status_range , device .function )
66- )
67-
68- for device_specs in lookup_tuple :
69- if current_definition := device_specs .get (dpcode ):
70- return parse_dptype (current_definition .type )
71-
72- return None
73-
74-
7555def remap_value (
7656 value : float ,
7757 from_min : float = 0 ,
You can’t perform that action at this time.
0 commit comments