From d35497b8842aeae02f02e876a7fc3173d2f2d1a0 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 8 Apr 2024 20:41:49 +0200 Subject: [PATCH] rectangle size was calculated incorrectly and has now been fixed to the correct size --- custom_components/divoom_pixoo/const.py | 2 +- custom_components/divoom_pixoo/manifest.json | 2 +- custom_components/divoom_pixoo/sensor.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/custom_components/divoom_pixoo/const.py b/custom_components/divoom_pixoo/const.py index f7eee83..b731697 100644 --- a/custom_components/divoom_pixoo/const.py +++ b/custom_components/divoom_pixoo/const.py @@ -1,3 +1,3 @@ DOMAIN = "divoom_pixoo" -VERSION = "1.10.1" +VERSION = "1.10.2" CURRENT_ENTRY_VERSION = 2 diff --git a/custom_components/divoom_pixoo/manifest.json b/custom_components/divoom_pixoo/manifest.json index c90b356..71f8ea7 100644 --- a/custom_components/divoom_pixoo/manifest.json +++ b/custom_components/divoom_pixoo/manifest.json @@ -7,5 +7,5 @@ "iot_class": "local_polling", "issue_tracker": "https://github.com/gickowtf/pixoo-homeassistant/issues", "requirements": [], - "version": "1.10.1" + "version": "1.10.2" } diff --git a/custom_components/divoom_pixoo/sensor.py b/custom_components/divoom_pixoo/sensor.py index c630305..dd1ad58 100644 --- a/custom_components/divoom_pixoo/sensor.py +++ b/custom_components/divoom_pixoo/sensor.py @@ -241,6 +241,8 @@ def _render_page(self, page): component['size'] ] + size = (size[0] - 1, size[1] - 1) + rendered_fill = bool(Template(str(component.get('filled', True)), self.hass).async_render(variables=rendered_variables)) if rendered_fill: