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