From 0702407fac1c9b5ec0232ac21b7ad7b75be2e292 Mon Sep 17 00:00:00 2001 From: ThaStealth Date: Fri, 3 May 2019 18:57:41 +0200 Subject: [PATCH] Added option to select photoblack cartridge (#23433) * Added option to select photoblack cartridge * Update sensor.py * Name change --- .../components/epsonworkforce/manifest.json | 2 +- homeassistant/components/epsonworkforce/sensor.py | 13 +++++++------ requirements_all.txt | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/epsonworkforce/manifest.json b/homeassistant/components/epsonworkforce/manifest.json index 5f39c414725..21f76c3a31f 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 6abf04d8aaa..4f9ea4a1dd0 100644 --- a/homeassistant/components/epsonworkforce/sensor.py +++ b/homeassistant/components/epsonworkforce/sensor.py @@ -10,15 +10,16 @@ from homeassistant.exceptions import PlatformNotReady 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'], - '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, diff --git a/requirements_all.txt b/requirements_all.txt index 9f319d9e528..c68a6a17192 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -407,7 +407,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