Skip to content

Commit

Permalink
Add Polish translation & fix pressure
Browse files Browse the repository at this point in the history
  • Loading branch information
bkbilly committed Feb 14, 2025
1 parent faf58c0 commit b226003
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tpms_ble/tpms_parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _process_tpms_2(self, address: str, local_name: str, data: bytes, company_id
return
voltage = int(comp_hex[2:4], 16) / 10
temperature = int(data_hex[0:2], 16)
psi_pressure = int(data_hex[2:6], 16) / 10
psi_pressure = (int(data_hex[2:6], 16) - 145) / 10

pressure = round(psi_pressure * 0.0689476, 3)
min_voltage = 2.6
Expand Down
22 changes: 22 additions & 0 deletions custom_components/tpms_ble/translations/pl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"config": {
"abort": {
"already_configured": "Urządzenie zostało już skonfigurowane",
"already_in_progress": "Konfiguracja w toku",
"no_devices_found": "Nie znaleziono żadnego urządzenia",
"not_supported": "Urządzenie nieobsługiwane"
},
"flow_title": "{name}",
"step": {
"bluetooth_confirm": {
"description": "Czy chcesz skonfigurować {name}?"
},
"user": {
"data": {
"address": "Urządzenie"
},
"description": "Wybierz urządzenie które chcesz skonfigurować"
}
}
}
}

0 comments on commit b226003

Please sign in to comment.