Skip to content

Commit

Permalink
Change type of sensor to lower case in sensor name
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarnekov committed Oct 22, 2022
1 parent 97d4ad3 commit 5c603e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/danfoss_ally/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,23 @@ class AllySensorType(IntEnum):
entity_category=None,
native_unit_of_measurement=TEMP_CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
name="{} Temperature",
name="{} temperature",
),
SensorEntityDescription(
key=AllySensorType.BATTERY,
device_class=SensorDeviceClass.BATTERY,
entity_category=EntityCategory.DIAGNOSTIC,
native_unit_of_measurement=PERCENTAGE,
state_class=SensorStateClass.MEASUREMENT,
name="{} Battery",
name="{} battery",
),
SensorEntityDescription(
key=AllySensorType.HUMIDITY,
device_class=SensorDeviceClass.HUMIDITY,
entity_category=None,
native_unit_of_measurement=PERCENTAGE,
state_class=SensorStateClass.MEASUREMENT,
name="{} Humidity",
name="{} humidity",
)
]

Expand Down

0 comments on commit 5c603e4

Please sign in to comment.