mirror of
https://github.com/Andre0512/hon.git
synced 2026-05-07 09:54:41 +02:00
Merge branch 'main' into refactor
This commit is contained in:
@@ -85,5 +85,7 @@ def get_coordinator(hass, appliance):
|
||||
|
||||
|
||||
def get_readable(description, value):
|
||||
with suppress(ValueError):
|
||||
return description.option_list.get(int(value), value)
|
||||
if description.option_list is not None:
|
||||
with suppress(ValueError):
|
||||
return description.option_list.get(int(value), value)
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user