소스 검색

Fix API status sensors using wrong Room State device identifier

ZiB 5 달 전
부모
커밋
631444c5c2
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      custom_components/room_cal_ha/sensor.py

+ 1 - 1
custom_components/room_cal_ha/sensor.py

@@ -56,7 +56,7 @@ async def async_setup_entry(
 
   if entry.options.get(CONF_SYNC_MODE) == SYNC_MODE_API:
     room_state_device = DeviceInfo(
-      identifiers={(DOMAIN, entry.entry_id)},
+      identifiers={(DOMAIN, f"{entry.entry_id}_room_state")},
       name=f"{room_name} Room State",
     )
     entities += [