mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-18 16:10:44 +08:00
fix: remove unused function get_name_by_value
This commit is contained in:
parent
8580942225
commit
e42a3a5997
@ -202,12 +202,6 @@ class MIoTSpecValueList:
|
|||||||
return item.description
|
return item.description
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_name_by_value(self, value: Any) -> Optional[str]:
|
|
||||||
for item in self.items:
|
|
||||||
if item.value == value:
|
|
||||||
return item.name
|
|
||||||
return None
|
|
||||||
|
|
||||||
def dump(self) -> list:
|
def dump(self) -> list:
|
||||||
return [item.dump() for item in self.items]
|
return [item.dump() for item in self.items]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user