Remove unnecessary unique_id suffix from Google Cloud entities (#126585)
Remove uncessary unique_id suffix
This commit is contained in:
parent
ce70f4ebac
commit
99dbc99b6c
2 changed files with 2 additions and 2 deletions
|
@ -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)},
|
||||
|
|
|
@ -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)},
|
||||
|
|
Loading…
Add table
Reference in a new issue