From ee4a3035b9b14a5bc3f82ba98919558ae361ff7b Mon Sep 17 00:00:00 2001 From: steve Date: Sun, 7 Jan 2024 08:11:21 +1000 Subject: [PATCH] 1.66 --- custom_components/fordpass/device_tracker.py | 4 ++-- custom_components/fordpass/manifest.json | 2 +- custom_components/fordpass/translations/de.json | 5 ++++- custom_components/fordpass/translations/fr.json | 5 ++++- custom_components/fordpass/translations/it.json | 5 ++++- custom_components/fordpass/translations/nl.json | 5 ++++- info.md | 3 +++ 7 files changed, 22 insertions(+), 7 deletions(-) diff --git a/custom_components/fordpass/device_tracker.py b/custom_components/fordpass/device_tracker.py index aab76da..72c7889 100644 --- a/custom_components/fordpass/device_tracker.py +++ b/custom_components/fordpass/device_tracker.py @@ -1,7 +1,7 @@ """Vehicle Tracker Sensor""" import logging -from homeassistant.components.device_tracker import SOURCE_TYPE_GPS +from homeassistant.components.device_tracker import SourceType from homeassistant.components.device_tracker.config_entry import TrackerEntity from . import FordPassEntity @@ -46,7 +46,7 @@ def longitude(self): @property def source_type(self): """Set source type to GPS""" - return SOURCE_TYPE_GPS + return SourceType.GPS @property def name(self): diff --git a/custom_components/fordpass/manifest.json b/custom_components/fordpass/manifest.json index bb46069..af1002f 100644 --- a/custom_components/fordpass/manifest.json +++ b/custom_components/fordpass/manifest.json @@ -12,6 +12,6 @@ "loggers": ["custom_components.fordpass"], "requirements": [], "ssdp": [], - "version": "0.1.65", + "version": "0.1.66", "zeroconf": [] } \ No newline at end of file diff --git a/custom_components/fordpass/translations/de.json b/custom_components/fordpass/translations/de.json index 8ee6998..6968305 100644 --- a/custom_components/fordpass/translations/de.json +++ b/custom_components/fordpass/translations/de.json @@ -16,7 +16,10 @@ "username": "FordPass Username (E-Mail)", "vin": "FIN", "region" : "FordPass Region" - } + }, + "data_description": { + "username": "Wenn Sie ein Mobiltelefon anstelle einer E-Mail verwenden, geben Sie bitte Ihre Nummer (minus die anfängliche 0) sowie + und die Landesvorwahl ein (z. B. +99123456789)." + } }, "vehicle": { "title": "Selecteer voertuig om toe te voegen", diff --git a/custom_components/fordpass/translations/fr.json b/custom_components/fordpass/translations/fr.json index 175138a..c837aa7 100644 --- a/custom_components/fordpass/translations/fr.json +++ b/custom_components/fordpass/translations/fr.json @@ -17,7 +17,10 @@ "username": "Utilisateur FordPass (Email)", "vin": "NIV", "region" : "Région FordPass" - } + }, + "data_description": { + "username": "Si vous utilisez un mobile au lieu d'un e-mail, veuillez saisir votre numéro (moins le 0 initial), inclure également + et l'indicatif du pays (par exemple +99123456789)." + } }, "vehicle": { "title": "Sélectionnez le véhicule à ajouter", diff --git a/custom_components/fordpass/translations/it.json b/custom_components/fordpass/translations/it.json index 11c336f..c037d20 100644 --- a/custom_components/fordpass/translations/it.json +++ b/custom_components/fordpass/translations/it.json @@ -16,7 +16,10 @@ "username": "FordPass Username (Email)", "vin": "VIN", "region" : "FordPass Regione" - } + }, + "data_description": { + "username": "Se utilizzi un cellulare anziché un'e-mail, inserisci il tuo numero (meno lo 0 iniziale), includi anche + e il prefisso internazionale (ad esempio +99123456789)" + } }, "vehicle": { "title": "Seleziona il veicolo da aggiungere", diff --git a/custom_components/fordpass/translations/nl.json b/custom_components/fordpass/translations/nl.json index d984a27..f1e07fa 100644 --- a/custom_components/fordpass/translations/nl.json +++ b/custom_components/fordpass/translations/nl.json @@ -17,7 +17,10 @@ "username": "FordPass gebruikersnaam (e-mailadres)", "vin": "VIN", "region" : "FordPass regio" - } + }, + "data_description": { + "username": "Hvis du bruker en mobil i stedet for e-post, skriv inn nummeret ditt (minus initial 0), inkluder også + og landskoden (f.eks. +99123456789)" + } }, "vehicle": { "title": "Velg kjøretøy som skal legges til", diff --git a/info.md b/info.md index 9b64625..1fdda01 100644 --- a/info.md +++ b/info.md @@ -1,4 +1,7 @@ ## **Changelog** +### Version 1.66 +- Remove deprecated GPS source type +- Added data_description translations ### Version 1.65 - Add ability to use Lincoln vehicles again ### Version 1.64