Improve string formatting v2 (#33645)

* Improve string formatting v2

* Improve string formatting v3

* Address review comments
This commit is contained in:
springstan
2020-04-04 23:09:34 +02:00
committed by GitHub
parent d2e70eb967
commit dde93304d3
28 changed files with 42 additions and 40 deletions

View File

@@ -316,7 +316,7 @@ class TraccarScanner:
None,
)
self._hass.bus.async_fire(
"traccar_" + self._event_types.get(event["type"]),
f"traccar_{self._event_types.get(event['type'])}",
{
"device_traccar_id": event["deviceId"],
"device_name": device_name,