mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +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 the state of the sensor."""
|
||||||
return self._state
|
return self._state
|
||||||
|
|
||||||
|
@property
|
||||||
|
def unit_of_measurement(self):
|
||||||
|
"""Return the unit of measurement of this entity, if any."""
|
||||||
|
return 'packages'
|
||||||
|
|
||||||
def _update(self):
|
def _update(self):
|
||||||
"""Update device state."""
|
"""Update device state."""
|
||||||
import fedexdeliverymanager
|
import fedexdeliverymanager
|
||||||
|
Loading…
x
Reference in New Issue
Block a user