Added option to select photoblack cartridge (#23433)

* Added option to select photoblack cartridge

* Update sensor.py

* Name change
pull/23662/head
ThaStealth 2019-05-03 18:57:41 +02:00 committed by Fabian Affolter
parent 6e34015420
commit 0702407fac
3 changed files with 9 additions and 8 deletions

View File

@ -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"]
}

View File

@ -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,

View File

@ -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