Add entity translations to Sonos (#96167)

* Add entity translations to Sonos

* Add entity translations to Sonos

* Add entity translations to Sonos

* Add entity translations to Sonos
This commit is contained in:
Joost Lekkerkerker 2023-07-15 00:36:26 +02:00 committed by GitHub
parent b77de2abaf
commit 81ce6e4797
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 74 additions and 24 deletions

View file

@ -58,7 +58,6 @@ class SonosPowerEntity(SonosEntity, BinarySensorEntity):
_attr_entity_category = EntityCategory.DIAGNOSTIC
_attr_device_class = BinarySensorDeviceClass.BATTERY_CHARGING
_attr_name = "Power"
def __init__(self, speaker: SonosSpeaker) -> None:
"""Initialize the power entity binary sensor."""
@ -92,7 +91,7 @@ class SonosMicrophoneSensorEntity(SonosEntity, BinarySensorEntity):
_attr_entity_category = EntityCategory.DIAGNOSTIC
_attr_icon = "mdi:microphone"
_attr_name = "Microphone"
_attr_translation_key = "microphone"
def __init__(self, speaker: SonosSpeaker) -> None:
"""Initialize the microphone binary sensor entity."""