Skip to content

Commit

Permalink
add strings for lambda status
Browse files Browse the repository at this point in the history
  • Loading branch information
denpamusic committed Dec 23, 2023
1 parent 02e5811 commit 3355517
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
4 changes: 2 additions & 2 deletions custom_components/econet300/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@
else ("OFF" if str(x).strip() == "false" else None)
),
"lambdaStatus": (
lambda x: "STOP"
lambda x: "stop"
if x == 0
else ("START" if x == 1 else ("Working" if x == 2 else "Unknown"))
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",
Expand Down
10 changes: 9 additions & 1 deletion custom_components/econet300/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@
"fuel_level": { "name": "Fuel level" },
"fan_power": { "name": "Fan power" },
"fan_works": { "name": "Fan" },
"lambda_status": { "name": "Lambda status" },
"lambda_status": {
"name": "Lambda status",
"state": {
"stop": "Stop",
"start": "Start",
"working": "Working",
"unknown": "Unknown"
}
},
"lambda_set": { "name": "Lambda set" },
"lambda_level": { "name": "Lambda level" },
"main_server": { "name": "Main server" },
Expand Down
10 changes: 9 additions & 1 deletion custom_components/econet300/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@
"fuel_level": { "name": "Fuel level" },
"fan_power": { "name": "Fan power" },
"fan_works": { "name": "Fan" },
"lambda_status": { "name": "Lambda status" },
"lambda_status": {
"name": "Lambda status",
"state": {
"stop": "Stop",
"start": "Start",
"working": "Working",
"unknown": "Unknown"
}
},
"lambda_set": { "name": "Lambda set" },
"lambda_level": { "name": "Lambda level" },
"main_server": { "name": "Main server" },
Expand Down
10 changes: 9 additions & 1 deletion custom_components/econet300/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@
"fuel_level": { "name": "Poziom paliwa" },
"fan_works": { "name": "Fan" },
"fan_power": { "name": "Moc nadmuchu" },
"lambda_status": { "name": "Lambda status" },
"lambda_status": {
"name": "Lambda status",
"state": {
"stop": "Stop",
"start": "Start",
"working": "Working",
"unknown": "Unknown"
}
},
"lambda_set": { "name": "Lambda set" },
"lambda_level": { "name": "Czujnik Lambda" },
"mixer_temp1": { "name": "Temp. mieszacza 1" },
Expand Down

0 comments on commit 3355517

Please sign in to comment.