Skip to content

Commit

Permalink
Add missing image filename to system_path sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 committed Jan 19, 2021
1 parent 92bda11 commit f387550
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/mail_and_packages/const.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DOMAIN = "mail_and_packages"
DOMAIN_DATA = "{}_data".format(DOMAIN)
VERSION = "0.3.0-b33"
VERSION = "0.3.0-b34"
ISSUE_URL = "http://github.com/moralmunky/Home-Assistant-Mail-And-Packages"
PLATFORM = "sensor"
DATA = "data"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/mail_and_packages/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def name(self):
def state(self):
"""Return the state of the sensor."""
if self.type == "usps_mail_image_system_path":
return f"{self.hass.config.path()}/{self._config.data[const.CONF_PATH]}"
return f"{self.hass.config.path()}/{self._config.data[const.CONF_PATH]}{self._image}"
elif self.type == "usps_mail_image_url":
if self.hass.config.external_url is None:
_LOGGER.warn("External URL not set in configuration.")
Expand Down

0 comments on commit f387550

Please sign in to comment.