Webhook for Traccar (#24762)
* add initial traccar webhook support * remove unused import * add tests but disabled atm * remove translations * add timestamp parameter * use post for tests * rename config_flow * format using black * format tests using black * Use str instead of float * fix most comments * check id * add two device test * reformat * fix failuers * Update tests/components/traccar/test_init.py Co-Authored-By: Martin Hjelmare <marhje52@kth.se> * Update tests/components/traccar/test_init.py Co-Authored-By: Martin Hjelmare <marhje52@kth.se> * Update tests/components/traccar/test_init.py Co-Authored-By: Martin Hjelmare <marhje52@kth.se> * Update tests/components/traccar/test_init.py Co-Authored-By: Martin Hjelmare <marhje52@kth.se> * black
This commit is contained in:
1 parent
60dfa38717
commit
dc5c1783dc
8 files changed
+556
-6
No files matched your search
@@ -0,0 +1,10 @@
|
||||
"""Config flow for Traccar."""
|
||||
from homeassistant.helpers import config_entry_flow
|
||||
from .const import DOMAIN
|
||||
|
||||
|
||||
config_entry_flow.register_webhook_flow(
|
||||
DOMAIN,
|
||||
"Traccar Webhook",
|
||||
{"docs_url": "https://www.home-assistant.io/components/traccar/"},
|
||||
)
|
||||
Reference in new issue
Block a user