1 parent
0100f87ff2
commit
47e31dc9ee
143 files changed
+1584
-1761
No files matched your search
@@ -21,13 +21,12 @@ STATUS_DELIVERED = 'delivered'
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Setup the USPS platform."""
|
||||
"""Set up the USPS platform."""
|
||||
if discovery_info is None:
|
||||
return
|
||||
|
||||
usps = hass.data[DATA_USPS]
|
||||
add_devices([USPSPackageSensor(usps),
|
||||
USPSMailSensor(usps)], True)
|
||||
add_devices([USPSPackageSensor(usps), USPSMailSensor(usps)], True)
|
||||
|
||||
|
||||
class USPSPackageSensor(Entity):
|
||||
@@ -73,7 +72,7 @@ class USPSPackageSensor(Entity):
|
||||
|
||||
@property
|
||||
def icon(self):
|
||||
"""Icon to use in the frontend."""
|
||||
"""Return the icon to use in the frontend."""
|
||||
return 'mdi:package-variant-closed'
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user