Add entity translation to Moon (#97404)
This commit is contained in:
committed by
GitHub
parent
15b7035ad0
commit
04e72fec57
@@ -47,7 +47,6 @@ class MoonSensorEntity(SensorEntity):
|
||||
"""Representation of a Moon sensor."""
|
||||
|
||||
_attr_has_entity_name = True
|
||||
_attr_name = "Phase"
|
||||
_attr_device_class = SensorDeviceClass.ENUM
|
||||
_attr_options = [
|
||||
STATE_NEW_MOON,
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"phase": {
|
||||
"name": "Phase",
|
||||
"state": {
|
||||
"first_quarter": "First quarter",
|
||||
"full_moon": "Full moon",
|
||||
|
||||
Reference in New Issue
Block a user