Add entity translation to Moon (#97404)

This commit is contained in:
Joost Lekkerkerker 2023-07-30 19:10:45 +02:00 committed by GitHub
parent 15b7035ad0
commit 04e72fec57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,6 @@ class MoonSensorEntity(SensorEntity):
"""Representation of a Moon sensor.""" """Representation of a Moon sensor."""
_attr_has_entity_name = True _attr_has_entity_name = True
_attr_name = "Phase"
_attr_device_class = SensorDeviceClass.ENUM _attr_device_class = SensorDeviceClass.ENUM
_attr_options = [ _attr_options = [
STATE_NEW_MOON, STATE_NEW_MOON,

View File

@ -13,6 +13,7 @@
"entity": { "entity": {
"sensor": { "sensor": {
"phase": { "phase": {
"name": "Phase",
"state": { "state": {
"first_quarter": "First quarter", "first_quarter": "First quarter",
"full_moon": "Full moon", "full_moon": "Full moon",