mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
Update PostNL unit of measure to align with UPS (#15023)
I'm using both the UPS and PostNL package trackers. I'd like to have the unit of measure to be the same, now they appear in two different graphs in the history view. If we prefer ```package(s)``` over ```package``` then I'll do a PR for [this line](https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/sensor/ups.py#L81)
This commit is contained in:
parent
cbdfc95cc8
commit
0e7e58f172
@ -76,7 +76,7 @@ class PostNLSensor(Entity):
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
"""Return the unit of measurement of this entity, if any."""
|
||||
return 'package(s)'
|
||||
return 'packages'
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user