mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
FedEx: Adds "packages" as a unit (#9588)
* Adds "packages" as a unit * Collaborator-requested changes
This commit is contained in:
parent
d499c18e63
commit
eb2338249f
@ -82,6 +82,11 @@ class FedexSensor(Entity):
|
||||
"""Return the state of the sensor."""
|
||||
return self._state
|
||||
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
"""Return the unit of measurement of this entity, if any."""
|
||||
return 'packages'
|
||||
|
||||
def _update(self):
|
||||
"""Update device state."""
|
||||
import fedexdeliverymanager
|
||||
|
Loading…
x
Reference in New Issue
Block a user