Skip to content

Commit

Permalink
add translations in translation file
Browse files Browse the repository at this point in the history
  • Loading branch information
jontofront authored Dec 21, 2023
1 parent 6e4710e commit 6028d5a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 28 deletions.
2 changes: 0 additions & 2 deletions custom_components/econet300/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@
"1795": "fanPower",
"1280": "tempCOSet",
# Binary sensors for testing

}

# Unknown ID's
Expand Down Expand Up @@ -222,7 +221,6 @@
"lambdaSet": "mdi:lambda",
"lambdaStatus": "mdi:lambda",
"quality": "mdi:signal",

}

REG_PARAM_VALUE_PROCESSOR = {
Expand Down
1 change: 0 additions & 1 deletion custom_components/econet300/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def create_entity_description(key: str) -> EconetSensorEntityDescription:
state_class=REG_PARAM_STATE_CLASS.get(map_key, None),
suggested_display_precision=REG_PARAM_PRECISION.get(map_key, None),
process_val=REG_PARAM_VALUE_PROCESSOR.get(map_key, lambda x: x),

)
_LOGGER.debug("Created entity description: %s", entity_description)
return entity_description
Expand Down
20 changes: 12 additions & 8 deletions custom_components/econet300/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,28 @@
},
"sensor": {
"boiler_power": { "name": "Boiler power" },
"temp_external_sensor": { "name": "Outside temperature" },
"temp_feeder": {"name": "Feeder temperature"},
"fuel_level": { "name": "Fuel level" },
"thermostat": { "name": "Thermostat" },
"lambda_status": { "name": "Lambda status" },
"lambda_set": { "name": "Lambda set" },
"lambda_level": { "name": "Lambda level" },
"main_server": { "name": "Main server" },
"mode": { "name": "Boiler mode" },
"mixer_temp1": { "name": "Mixer 1 temperature" },
"mixer_set_temp1": { "name": "Mixer target temperature" },
"signal": { "name": "Signal quality" },
"servoMixer1": { "name": "Mixer 1 servo position" },
"status_wifi": { "name": "Wireless network connected" },
"temp_co": { "name": "Heating temperature" },
"temp_cwu": { "name": "Water heater temperature" },
"temp_upper_buffer": { "name": "Upper buffer temperature" },
"temp_lower_buffer": { "name": "Lower buffer temperature" },
"temp_flue_gas": { "name": "Flue gas temperature" },
"mixer_temp1": { "name": "Mixer 1 temperature" },
"mixer_set_temp1": { "name": "Mixer target temperature" },
"mode": { "name": "Boiler mode" },
"fan_power": { "name": "Fan power" },
"temp_co_set": { "name": "Heating target temperature" }
"temp_external_sensor": { "name": "Outside temperature" },
"temp_feeder": {"name": "Feeder temperature"},
"temp_co_set": { "name": "Heating target temperature" },
"thermostat": { "name": "Thermostat" },
"valve_mixer1": { "name": "Mixer 1 valve % open" },
"fan_power": { "name": "Fan power" }
}
}
}
38 changes: 21 additions & 17 deletions custom_components/econet300/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,29 @@
"boiler_pump": { "name": "Boiler pump" }
},
"sensor": {
"boiler_power": { "name": "Boiler katilo galia" },
"temp_external_sensor": { "name": "Outside temperature" },
"temp_feeder": {"name": "Feeder temperature"},
"fuel_level": { "name": "Fuel level" },
"thermostat": { "name": "Thermostat" },
"boiler_power": { "name": "Moc kotła" },
"fuel_level": { "name": "Poziom paliwa" },
"lambda_status": { "name": "Lambda status" },
"lambda_set": { "name": "Lambda set" },
"lambda_level": { "name": "Lambda level" },
"signal": { "name": "Signal quality" },
"temp_co": { "name": "Heating temperature" },
"temp_cwu": { "name": "Water heater temperature" },
"temp_upper_buffer": { "name": "Upper buffer temperature" },
"temp_lower_buffer": { "name": "Lower buffer temperature" },
"temp_flue_gas": { "name": "Flue gas temperature" },
"mixer_temp1": { "name": "Mixer 1 temperature" },
"mixer_set_temp1": { "name": "Mixer target temperature" },
"mode": { "name": "Boiler mode" },
"fan_power": { "name": "Fan power" },
"temp_co_set": { "name": "Heating target temperature" }
"lambda_level": { "name": "Czujnik Lambda" },
"mixer_temp1": { "name": "Temp. mieszacza 1" },
"mixer_set_temp1": { "name": "Temp. zadana mieszacza 1" },
"main_server": { "name": "Główny serwer" },
"mode": { "name": "Tryb pracy" },
"fan_power": { "name": "Moc nadmuchu" },
"temp_co_set": { "name": "Heating target temperature" },
"valve_mixer1": { "name": "Zawór mieszacza 1" },
"servo_Mixer1": { "name": "Siłownik mieszacza 1" },
"signal": { "name": "Siła sygnału" },
"status_wifi": { "name": "Połączenie z siecią bezprzewodową" },
"temp_co": { "name": "Temperatura kotła" },
"temp_cwu": { "name": "Temperatura CWU" },
"temp_upper_buffer": { "name": "Temperatura bufora górna" },
"temp_lower_buffer": { "name": "Temperatura bufora dolna" },
"temp_flue_gas": { "name": "Temperatura spalin" },
"temp_external_sensor": { "name": "Temperatura zewnętrzna" },
"temp_feeder": {"name": "Temperatura podajnika"},
"thermostat": { "name": "Thermostat" }
}
}
}

0 comments on commit 6028d5a

Please sign in to comment.