diff --git a/custom_components/tpms_ble/tpms_parser/parser.py b/custom_components/tpms_ble/tpms_parser/parser.py index df1361b..fcc6a55 100644 --- a/custom_components/tpms_ble/tpms_parser/parser.py +++ b/custom_components/tpms_ble/tpms_parser/parser.py @@ -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 diff --git a/custom_components/tpms_ble/translations/pl.json b/custom_components/tpms_ble/translations/pl.json new file mode 100644 index 0000000..069b990 --- /dev/null +++ b/custom_components/tpms_ble/translations/pl.json @@ -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ć" + } + } + } +} \ No newline at end of file