mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add entity translation to Moon (#97404)
This commit is contained in:
parent
15b7035ad0
commit
04e72fec57
@ -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,
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user