mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Remove unnecessary unique_id suffix from Google Cloud entities (#126585)
Remove uncessary unique_id suffix
This commit is contained in:
parent
ce70f4ebac
commit
99dbc99b6c
@ -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…
x
Reference in New Issue
Block a user