Rename Traccar to Traccar Client (#109217)
This commit is contained in:
parent
c8bfb288a3
commit
a45d26c2bd
6 changed files with 10 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
"""Support for Traccar."""
|
||||
"""Support for Traccar Client."""
|
||||
from http import HTTPStatus
|
||||
|
||||
from aiohttp import web
|
||||
|
@ -56,7 +56,7 @@ WEBHOOK_SCHEMA = vol.Schema(
|
|||
|
||||
|
||||
async def handle_webhook(hass, webhook_id, request):
|
||||
"""Handle incoming webhook with Traccar request."""
|
||||
"""Handle incoming webhook with Traccar Client request."""
|
||||
try:
|
||||
data = WEBHOOK_SCHEMA(dict(request.query))
|
||||
except vol.MultipleInvalid as error:
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
"""Config flow for Traccar."""
|
||||
"""Config flow for Traccar Client."""
|
||||
from homeassistant.helpers import config_entry_flow
|
||||
|
||||
from .const import DOMAIN
|
||||
|
||||
config_entry_flow.register_webhook_flow(
|
||||
DOMAIN,
|
||||
"Traccar Webhook",
|
||||
"Traccar Client Webhook",
|
||||
{"docs_url": "https://www.home-assistant.io/integrations/traccar/"},
|
||||
)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""Constants for Traccar integration."""
|
||||
"""Constants for Traccar client integration."""
|
||||
|
||||
DOMAIN = "traccar"
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"domain": "traccar",
|
||||
"name": "Traccar",
|
||||
"name": "Traccar Client",
|
||||
"codeowners": ["@ludeeus"],
|
||||
"config_flow": true,
|
||||
"dependencies": ["webhook"],
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
"config": {
|
||||
"step": {
|
||||
"user": {
|
||||
"title": "Set up Traccar",
|
||||
"description": "Are you sure you want to set up Traccar?"
|
||||
"title": "Set up Traccar Client",
|
||||
"description": "Are you sure you want to set up Traccar Client?"
|
||||
}
|
||||
},
|
||||
"abort": {
|
||||
|
@ -12,7 +12,7 @@
|
|||
"webhook_not_internet_accessible": "[%key:common::config_flow::abort::webhook_not_internet_accessible%]"
|
||||
},
|
||||
"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."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6163,7 +6163,7 @@
|
|||
]
|
||||
},
|
||||
"traccar": {
|
||||
"name": "Traccar",
|
||||
"name": "Traccar Client",
|
||||
"integration_type": "hub",
|
||||
"config_flow": true,
|
||||
"iot_class": "local_polling"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue