From b942c8acd4c100528aed1e78fe4c601f5a7d8f34 Mon Sep 17 00:00:00 2001 From: ThaStealth Date: Fri, 26 Apr 2019 10:15:52 +0200 Subject: [PATCH 1/3] Added option to select photoblack cartridge --- homeassistant/components/epsonworkforce/manifest.json | 2 +- homeassistant/components/epsonworkforce/sensor.py | 3 ++- requirements_all.txt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/epsonworkforce/manifest.json b/homeassistant/components/epsonworkforce/manifest.json index 5f39c414725873..21f76c3a31f09a 100644 --- a/homeassistant/components/epsonworkforce/manifest.json +++ b/homeassistant/components/epsonworkforce/manifest.json @@ -4,6 +4,6 @@ "documentation": "https://www.home-assistant.io/components/epsonworkforce", "dependencies": [], "codeowners": ["@ThaStealth"], - "requirements": ["epsonprinter==0.0.8"] + "requirements": ["epsonprinter==0.0.9"] } diff --git a/homeassistant/components/epsonworkforce/sensor.py b/homeassistant/components/epsonworkforce/sensor.py index 6abf04d8aaa93e..ddfd9e4a88182f 100644 --- a/homeassistant/components/epsonworkforce/sensor.py +++ b/homeassistant/components/epsonworkforce/sensor.py @@ -10,11 +10,12 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity -REQUIREMENTS = ['epsonprinter==0.0.8'] +REQUIREMENTS = ['epsonprinter==0.0.9'] _LOGGER = logging.getLogger(__name__) MONITORED_CONDITIONS = { 'black': ['Inklevel Black', '%', 'mdi:water'], + 'photoblack': ['Inklevel Photoblack','%', 'mdi:water'], 'magenta': ['Inklevel Magenta', '%', 'mdi:water'], 'cyan': ['Inklevel Cyan', '%', 'mdi:water'], 'yellow': ['Inklevel Yellow', '%', 'mdi:water'], diff --git a/requirements_all.txt b/requirements_all.txt index 1f13b1edf792d7..4fadbc7c386444 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -401,7 +401,7 @@ ephem==3.7.6.0 epson-projector==0.1.3 # homeassistant.components.epsonworkforce -epsonprinter==0.0.8 +epsonprinter==0.0.9 # homeassistant.components.netgear_lte eternalegypt==0.0.7 From 5de425f94ac0479f364085e0eca0ed48bcf6435a Mon Sep 17 00:00:00 2001 From: ThaStealth Date: Fri, 26 Apr 2019 15:23:19 +0200 Subject: [PATCH 2/3] Update sensor.py --- homeassistant/components/epsonworkforce/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/epsonworkforce/sensor.py b/homeassistant/components/epsonworkforce/sensor.py index ddfd9e4a88182f..2f16ccf2327d0a 100644 --- a/homeassistant/components/epsonworkforce/sensor.py +++ b/homeassistant/components/epsonworkforce/sensor.py @@ -15,7 +15,7 @@ _LOGGER = logging.getLogger(__name__) MONITORED_CONDITIONS = { 'black': ['Inklevel Black', '%', 'mdi:water'], - 'photoblack': ['Inklevel Photoblack','%', 'mdi:water'], + 'photoblack': ['Inklevel Photoblack', '%', 'mdi:water'], 'magenta': ['Inklevel Magenta', '%', 'mdi:water'], 'cyan': ['Inklevel Cyan', '%', 'mdi:water'], 'yellow': ['Inklevel Yellow', '%', 'mdi:water'], From 75054deef4638fe711afe545d7db60ab209a8ed9 Mon Sep 17 00:00:00 2001 From: ThaStealth Date: Fri, 3 May 2019 09:08:41 +0200 Subject: [PATCH 3/3] Name change --- homeassistant/components/epsonworkforce/sensor.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/epsonworkforce/sensor.py b/homeassistant/components/epsonworkforce/sensor.py index 2f16ccf2327d0a..4f9ea4a1dd0dcd 100644 --- a/homeassistant/components/epsonworkforce/sensor.py +++ b/homeassistant/components/epsonworkforce/sensor.py @@ -14,12 +14,12 @@ _LOGGER = logging.getLogger(__name__) MONITORED_CONDITIONS = { - 'black': ['Inklevel Black', '%', 'mdi:water'], - 'photoblack': ['Inklevel Photoblack', '%', 'mdi:water'], - 'magenta': ['Inklevel Magenta', '%', 'mdi:water'], - 'cyan': ['Inklevel Cyan', '%', 'mdi:water'], - 'yellow': ['Inklevel Yellow', '%', 'mdi:water'], - 'clean': ['Inklevel Cleaning', '%', 'mdi:water'], + 'black': ['Ink level Black', '%', 'mdi:water'], + 'photoblack': ['Ink level Photoblack', '%', 'mdi:water'], + 'magenta': ['Ink level Magenta', '%', 'mdi:water'], + 'cyan': ['Ink level Cyan', '%', 'mdi:water'], + 'yellow': ['Ink level Yellow', '%', 'mdi:water'], + 'clean': ['Cleaning level', '%', 'mdi:water'], } PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_HOST): cv.string,