FedEx: Adds "packages" as a unit (#9588)

* Adds "packages" as a unit

* Collaborator-requested changes
This commit is contained in:
Aaron Bach 2017-09-27 11:44:41 -06:00 committed by Paulus Schoutsen
parent d499c18e63
commit eb2338249f

View File

@ -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