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:
parent
b77de2abaf
commit
81ce6e4797
6 changed files with 74 additions and 24 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue