From 16b592c3473c211ccdb40324a31882d96278117f Mon Sep 17 00:00:00 2001 From: iloveicedgreentea <31193909+iloveicedgreentea@users.noreply.github.com> Date: Mon, 24 Jun 2024 19:51:43 -0400 Subject: [PATCH] fix laser power and add missing attr --- custom_components/jvc_projectors/manifest.json | 2 +- custom_components/jvc_projectors/remote.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/custom_components/jvc_projectors/manifest.json b/custom_components/jvc_projectors/manifest.json index 4d3517c..7785e96 100644 --- a/custom_components/jvc_projectors/manifest.json +++ b/custom_components/jvc_projectors/manifest.json @@ -4,7 +4,7 @@ "config_flow": false, "documentation": "https://www.home-assistant.io/integrations/jvc_projector", "requirements": [ - "pyjvc==3.7.8" + "pyjvc==3.7.9" ], "ssdp": [], "zeroconf": [], diff --git a/custom_components/jvc_projectors/remote.py b/custom_components/jvc_projectors/remote.py index 0f40dbe..470a3b2 100644 --- a/custom_components/jvc_projectors/remote.py +++ b/custom_components/jvc_projectors/remote.py @@ -180,6 +180,7 @@ def _update_model_specific_attributes(self): self._attributes.update( { "installation_mode": self.jvc_client.get_install_mode(), + "picture_mode": self.jvc_client.get_picture_mode(), "aspect_ratio": self.jvc_client.get_aspect_ratio(), "color_mode": self.jvc_client.get_color_mode(), "input_level": self.jvc_client.get_input_level(), @@ -187,6 +188,8 @@ def _update_model_specific_attributes(self): "signal_status": self.jvc_client.get_source_status(), "resolution": self.jvc_client.get_source_display(), "anamorphic_mode": self.jvc_client.get_anamorphic(), + "firmware_version": self.jvc_client.get_software_version(), + "low_latency": self.jvc_client.is_ll_on(), } ) if self._attributes.get("signal_status"): @@ -204,10 +207,12 @@ def _update_model_specific_attributes(self): "laser_mode": self.jvc_client.get_laser_mode(), "laser_power": self.jvc_client.get_laser_power(), "laser_value": self.jvc_client.get_laser_value(), + "laser_time": self.jvc_client.get_lamp_time(), } ) else: self._attributes["lamp_power"] = self.jvc_client.get_lamp_power() + self._attributes["lamp_time"] = self.jvc_client.get_lamp_time() except TimeoutError as e: _LOGGER.error("Timeout while updating model-specific attributes: %s", e) except TypeError as e: