Fix remote control codes for jvc_projector (#108253)

Update dependency to add/fix remote codes
This commit is contained in:
Steve Easley 2024-01-18 17:36:57 -05:00 committed by GitHub
parent 72667adeba
commit a670ac25fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 23 additions and 3 deletions

View File

@ -7,5 +7,5 @@
"integration_type": "device",
"iot_class": "local_polling",
"loggers": ["jvcprojector"],
"requirements": ["pyjvcprojector==1.0.6"]
"requirements": ["pyjvcprojector==1.0.9"]
}

View File

@ -36,6 +36,18 @@ COMMANDS = {
"lens_control": const.REMOTE_LENS_CONTROL,
"setting_memory": const.REMOTE_SETTING_MEMORY,
"gamma_settings": const.REMOTE_GAMMA_SETTINGS,
"hdmi_1": const.REMOTE_HDMI_1,
"hdmi_2": const.REMOTE_HDMI_2,
"mode_1": const.REMOTE_MODE_1,
"mode_2": const.REMOTE_MODE_2,
"mode_3": const.REMOTE_MODE_3,
"lens_ap": const.REMOTE_LENS_AP,
"gamma": const.REMOTE_GAMMA,
"color_temp": const.REMOTE_COLOR_TEMP,
"natural": const.REMOTE_NATURAL,
"cinema": const.REMOTE_CINEMA,
"anamo": const.REMOTE_ANAMO,
"3d_format": const.REMOTE_3D_FORMAT,
}
_LOGGER = logging.getLogger(__name__)

View File

@ -1858,7 +1858,7 @@ pyisy==3.1.14
pyitachip2ir==0.0.7
# homeassistant.components.jvc_projector
pyjvcprojector==1.0.6
pyjvcprojector==1.0.9
# homeassistant.components.kaleidescape
pykaleidescape==1.0.1

View File

@ -1418,7 +1418,7 @@ pyiss==1.0.1
pyisy==3.1.14
# homeassistant.components.jvc_projector
pyjvcprojector==1.0.6
pyjvcprojector==1.0.9
# homeassistant.components.kaleidescape
pykaleidescape==1.0.1

View File

@ -61,6 +61,14 @@ async def test_commands(
)
assert mock_device.remote.call_count == 1
await hass.services.async_call(
REMOTE_DOMAIN,
SERVICE_SEND_COMMAND,
{ATTR_ENTITY_ID: ENTITY_ID, ATTR_COMMAND: ["hdmi_1"]},
blocking=True,
)
assert mock_device.remote.call_count == 2
async def test_unknown_command(
hass: HomeAssistant,