From 1dec30e2fabe10759366b88ccb8223cbb60563b5 Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Thu, 12 Jan 2023 00:57:56 +0100 Subject: [PATCH] Added room hint to google assistant --- .../src/se/hal/plugin/assistant/google/SmartHomeImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hal-assistant-google/src/se/hal/plugin/assistant/google/SmartHomeImpl.java b/plugins/hal-assistant-google/src/se/hal/plugin/assistant/google/SmartHomeImpl.java index 61f4b025..12bf00f2 100644 --- a/plugins/hal-assistant-google/src/se/hal/plugin/assistant/google/SmartHomeImpl.java +++ b/plugins/hal-assistant-google/src/se/hal/plugin/assistant/google/SmartHomeImpl.java @@ -130,7 +130,7 @@ public class SmartHomeImpl extends SmartHomeApp implements OAuth2TokenRegistrati .setName(device.getName()) .build()) .setWillReportState(true) - //.setRoomHint(sensor.getRoom().getName()) + .setRoomHint((device.getRoom() != null ? device.getRoom().getName() : "")) .setDeviceInfo( DeviceProto.DeviceInfo.newBuilder() //.setManufacturer((String) device.get("manufacturer"))