Skip to content

Commit

Permalink
add lamda proces for status_wifi and main_server
Browse files Browse the repository at this point in the history
  • Loading branch information
jontofront authored Dec 21, 2023
1 parent cdfbe8e commit ff97fa3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/econet300/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@
"lambdaStatus": lambda x: "STOP"
if x == 0
else ("START" if x == 1 else ("Working" if x == 2 else "Unknown")),
"status_wifi": lambda x: 'Connected' if x == 1 else 'Disconnected',
"main_server": lambda x: 'Server available' if x == 1 else 'Server not available',

}

REG_PARAM_ENTITY_CATEGORY = {
Expand Down

0 comments on commit ff97fa3

Please sign in to comment.