From f387550c2a2dd42820d0d772d854b761face2b82 Mon Sep 17 00:00:00 2001 From: firstof9 Date: Tue, 19 Jan 2021 06:43:02 -0700 Subject: [PATCH] Add missing image filename to system_path sensor --- custom_components/mail_and_packages/const.py | 2 +- custom_components/mail_and_packages/sensor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/mail_and_packages/const.py b/custom_components/mail_and_packages/const.py index 7281c8da..0ba15260 100644 --- a/custom_components/mail_and_packages/const.py +++ b/custom_components/mail_and_packages/const.py @@ -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" diff --git a/custom_components/mail_and_packages/sensor.py b/custom_components/mail_and_packages/sensor.py index 6fd5bd6e..a6b04ba8 100644 --- a/custom_components/mail_and_packages/sensor.py +++ b/custom_components/mail_and_packages/sensor.py @@ -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.")