From 99dbc99b6c2b8c9157d186323962f3d8f67f4fe0 Mon Sep 17 00:00:00 2001 From: tronikos Date: Mon, 23 Sep 2024 23:35:04 -0700 Subject: [PATCH] Remove unnecessary unique_id suffix from Google Cloud entities (#126585) Remove uncessary unique_id suffix --- homeassistant/components/google_cloud/stt.py | 2 +- homeassistant/components/google_cloud/tts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/google_cloud/stt.py b/homeassistant/components/google_cloud/stt.py index 13715ae29f8..99b7dadbb0e 100644 --- a/homeassistant/components/google_cloud/stt.py +++ b/homeassistant/components/google_cloud/stt.py @@ -55,7 +55,7 @@ class GoogleCloudSpeechToTextEntity(SpeechToTextEntity): client: speech_v1.SpeechAsyncClient, ) -> None: """Init Google Cloud STT entity.""" - self._attr_unique_id = f"{entry.entry_id}-stt" + self._attr_unique_id = f"{entry.entry_id}" self._attr_name = entry.title self._attr_device_info = dr.DeviceInfo( identifiers={(DOMAIN, entry.entry_id)}, diff --git a/homeassistant/components/google_cloud/tts.py b/homeassistant/components/google_cloud/tts.py index 60cdfbee3ab..e7bb899361a 100644 --- a/homeassistant/components/google_cloud/tts.py +++ b/homeassistant/components/google_cloud/tts.py @@ -223,7 +223,7 @@ class GoogleCloudTTSEntity(BaseGoogleCloudProvider, TextToSpeechEntity): ) -> None: """Init Google Cloud TTS entity.""" super().__init__(client, voices, language, options_schema) - self._attr_unique_id = f"{entry.entry_id}-tts" + self._attr_unique_id = f"{entry.entry_id}" self._attr_name = entry.title self._attr_device_info = dr.DeviceInfo( identifiers={(DOMAIN, entry.entry_id)},