Remove unnecessary unique_id suffix from Google Cloud entities (#126585)

Remove uncessary unique_id suffix
This commit is contained in:
tronikos 2024-09-23 23:35:04 -07:00 committed by GitHub
parent ce70f4ebac
commit 99dbc99b6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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)},

View file

@ -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)},