summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/commands/hmi/on_device_state_changed_notification.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/commands/hmi/on_device_state_changed_notification.cc')
-rw-r--r--src/components/application_manager/src/commands/hmi/on_device_state_changed_notification.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/application_manager/src/commands/hmi/on_device_state_changed_notification.cc b/src/components/application_manager/src/commands/hmi/on_device_state_changed_notification.cc
index fbb2bcfe9..b41eb6b86 100644
--- a/src/components/application_manager/src/commands/hmi/on_device_state_changed_notification.cc
+++ b/src/components/application_manager/src/commands/hmi/on_device_state_changed_notification.cc
@@ -95,8 +95,7 @@ void OnDeviceStateChangedNotification::Run() {
.asString();
if (device_id.empty()) {
if ((*message_)[strings::msg_params].keyExists("deviceId")) {
- device_id = MessageHelper::GetDeviceMacAddressForHandle(
- (*message_)[strings::msg_params]["deviceId"]["id"].asInt());
+ device_id = (*message_)[strings::msg_params]["deviceId"]["id"].asString();
}
} else {
// Policy uses hashed MAC address as device_id