mirror of
https://github.com/home-assistant/core.git
synced 2025-06-25 01:21:51 +02:00
Add support for more busy codes for Epson (#99771)
add support for more busy codes
This commit is contained in:
@ -6,5 +6,5 @@
|
||||
"documentation": "https://www.home-assistant.io/integrations/epson",
|
||||
"iot_class": "local_polling",
|
||||
"loggers": ["epson_projector"],
|
||||
"requirements": ["epson-projector==0.5.0"]
|
||||
"requirements": ["epson-projector==0.5.1"]
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ import logging
|
||||
from epson_projector import Projector, ProjectorUnavailableError
|
||||
from epson_projector.const import (
|
||||
BACK,
|
||||
BUSY,
|
||||
BUSY_CODES,
|
||||
CMODE,
|
||||
CMODE_LIST,
|
||||
CMODE_LIST_SET,
|
||||
@ -147,7 +147,7 @@ class EpsonProjectorMediaPlayer(MediaPlayerEntity):
|
||||
self._attr_volume_level = float(volume)
|
||||
except ValueError:
|
||||
self._attr_volume_level = None
|
||||
elif power_state == BUSY:
|
||||
elif power_state in BUSY_CODES:
|
||||
self._attr_state = MediaPlayerState.ON
|
||||
else:
|
||||
self._attr_state = MediaPlayerState.OFF
|
||||
|
@ -753,7 +753,7 @@ env-canada==0.5.36
|
||||
ephem==4.1.2
|
||||
|
||||
# homeassistant.components.epson
|
||||
epson-projector==0.5.0
|
||||
epson-projector==0.5.1
|
||||
|
||||
# homeassistant.components.epsonworkforce
|
||||
epsonprinter==0.0.9
|
||||
|
@ -606,7 +606,7 @@ env-canada==0.5.36
|
||||
ephem==4.1.2
|
||||
|
||||
# homeassistant.components.epson
|
||||
epson-projector==0.5.0
|
||||
epson-projector==0.5.1
|
||||
|
||||
# homeassistant.components.esphome
|
||||
esphome-dashboard-api==1.2.3
|
||||
|
Reference in New Issue
Block a user