mirror of
https://github.com/home-assistant/android
synced 2024-09-19 08:01:31 +00:00
Add device_id whenever we fire an event. (#693)
This commit is contained in:
parent
fbf53314ea
commit
1f0a170936
|
@ -177,7 +177,10 @@ class IntegrationRepositoryImpl @Inject constructor(
|
|||
override suspend fun fireEvent(eventType: String, eventData: Map<String, Any>) {
|
||||
var wasSuccess = false
|
||||
|
||||
val fireEventRequest = FireEventRequest(eventType, eventData)
|
||||
val fireEventRequest = FireEventRequest(
|
||||
eventType,
|
||||
eventData.plus(Pair("device_id", deviceId))
|
||||
)
|
||||
|
||||
for (it in urlRepository.getApiUrls()) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue