From 02ef5599f0e1212978dd28c72faa82ce3eecd349 Mon Sep 17 00:00:00 2001 From: Steve Easley Date: Sun, 22 Sep 2024 16:32:38 -0400 Subject: [PATCH 1/3] Add support for new projector auth method --- homeassistant/components/jvc_projector/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/jvc_projector/manifest.json b/homeassistant/components/jvc_projector/manifest.json index 5d83e93749481c..f24ec4df51c605 100644 --- a/homeassistant/components/jvc_projector/manifest.json +++ b/homeassistant/components/jvc_projector/manifest.json @@ -7,5 +7,5 @@ "integration_type": "device", "iot_class": "local_polling", "loggers": ["jvcprojector"], - "requirements": ["pyjvcprojector==1.0.12"] + "requirements": ["pyjvcprojector==1.1.0"] } diff --git a/requirements_all.txt b/requirements_all.txt index 824b6f10367283..759bd805689d7d 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1978,7 +1978,7 @@ pyisy==3.1.14 pyitachip2ir==0.0.7 # homeassistant.components.jvc_projector -pyjvcprojector==1.0.12 +pyjvcprojector==1.1.0 # homeassistant.components.kaleidescape pykaleidescape==1.0.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 7aa9093bf2f8aa..fe5ac5f97ac464 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1586,7 +1586,7 @@ pyiss==1.0.1 pyisy==3.1.14 # homeassistant.components.jvc_projector -pyjvcprojector==1.0.12 +pyjvcprojector==1.1.0 # homeassistant.components.kaleidescape pykaleidescape==1.0.1 From ffff73452eee6a416bab830251bb4756542bcb7a Mon Sep 17 00:00:00 2001 From: Steve Easley Date: Sun, 22 Sep 2024 17:08:47 -0400 Subject: [PATCH 2/3] Fix mypy to match lib change --- homeassistant/components/jvc_projector/coordinator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/jvc_projector/coordinator.py b/homeassistant/components/jvc_projector/coordinator.py index 874253b3324b8d..a2ecfa8eb5296d 100644 --- a/homeassistant/components/jvc_projector/coordinator.py +++ b/homeassistant/components/jvc_projector/coordinator.py @@ -4,6 +4,7 @@ from datetime import timedelta import logging +from typing import Any from jvcprojector import ( JvcProjector, @@ -40,7 +41,7 @@ def __init__(self, hass: HomeAssistant, device: JvcProjector) -> None: self.device = device self.unique_id = format_mac(device.mac) - async def _async_update_data(self) -> dict[str, str]: + async def _async_update_data(self) -> dict[str, Any]: """Get the latest state data.""" try: state = await self.device.get_state() From 00b57a9a1caec0cd1f76d74f7e8918da61592859 Mon Sep 17 00:00:00 2001 From: Steve Easley Date: Sun, 22 Sep 2024 17:33:52 -0400 Subject: [PATCH 3/3] retrigger checks