Rename Traccar to Traccar Client (#109217)

This commit is contained in:
Joakim Sørensen 2024-01-31 17:23:03 +01:00 committed by GitHub
parent c8bfb288a3
commit a45d26c2bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 10 additions and 10 deletions

View file

@ -1,4 +1,4 @@
"""Support for Traccar.""" """Support for Traccar Client."""
from http import HTTPStatus from http import HTTPStatus
from aiohttp import web from aiohttp import web
@ -56,7 +56,7 @@ WEBHOOK_SCHEMA = vol.Schema(
async def handle_webhook(hass, webhook_id, request): async def handle_webhook(hass, webhook_id, request):
"""Handle incoming webhook with Traccar request.""" """Handle incoming webhook with Traccar Client request."""
try: try:
data = WEBHOOK_SCHEMA(dict(request.query)) data = WEBHOOK_SCHEMA(dict(request.query))
except vol.MultipleInvalid as error: except vol.MultipleInvalid as error:

View file

@ -1,10 +1,10 @@
"""Config flow for Traccar.""" """Config flow for Traccar Client."""
from homeassistant.helpers import config_entry_flow from homeassistant.helpers import config_entry_flow
from .const import DOMAIN from .const import DOMAIN
config_entry_flow.register_webhook_flow( config_entry_flow.register_webhook_flow(
DOMAIN, DOMAIN,
"Traccar Webhook", "Traccar Client Webhook",
{"docs_url": "https://www.home-assistant.io/integrations/traccar/"}, {"docs_url": "https://www.home-assistant.io/integrations/traccar/"},
) )

View file

@ -1,4 +1,4 @@
"""Constants for Traccar integration.""" """Constants for Traccar client integration."""
DOMAIN = "traccar" DOMAIN = "traccar"

View file

@ -1,6 +1,6 @@
{ {
"domain": "traccar", "domain": "traccar",
"name": "Traccar", "name": "Traccar Client",
"codeowners": ["@ludeeus"], "codeowners": ["@ludeeus"],
"config_flow": true, "config_flow": true,
"dependencies": ["webhook"], "dependencies": ["webhook"],

View file

@ -2,8 +2,8 @@
"config": { "config": {
"step": { "step": {
"user": { "user": {
"title": "Set up Traccar", "title": "Set up Traccar Client",
"description": "Are you sure you want to set up Traccar?" "description": "Are you sure you want to set up Traccar Client?"
} }
}, },
"abort": { "abort": {
@ -12,7 +12,7 @@
"webhook_not_internet_accessible": "[%key:common::config_flow::abort::webhook_not_internet_accessible%]" "webhook_not_internet_accessible": "[%key:common::config_flow::abort::webhook_not_internet_accessible%]"
}, },
"create_entry": { "create_entry": {
"default": "To send events to Home Assistant, you will need to set up the webhook feature in Traccar.\n\nUse the following URL: `{webhook_url}`\n\nSee [the documentation]({docs_url}) for further details." "default": "To send events to Home Assistant, you will need to set up the webhook feature in Traccar Client.\n\nUse the following URL: `{webhook_url}`\n\nSee [the documentation]({docs_url}) for further details."
} }
} }
} }

View file

@ -6163,7 +6163,7 @@
] ]
}, },
"traccar": { "traccar": {
"name": "Traccar", "name": "Traccar Client",
"integration_type": "hub", "integration_type": "hub",
"config_flow": true, "config_flow": true,
"iot_class": "local_polling" "iot_class": "local_polling"