Skip to content

Commit d35497b

Browse files
committed
rectangle size was calculated incorrectly and has now been fixed to the correct size
1 parent a84c096 commit d35497b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
DOMAIN = "divoom_pixoo"
2-
VERSION = "1.10.1"
2+
VERSION = "1.10.2"
33
CURRENT_ENTRY_VERSION = 2

custom_components/divoom_pixoo/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"iot_class": "local_polling",
88
"issue_tracker": "https://github.com/gickowtf/pixoo-homeassistant/issues",
99
"requirements": [],
10-
"version": "1.10.1"
10+
"version": "1.10.2"
1111
}

custom_components/divoom_pixoo/sensor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ def _render_page(self, page):
241241
component['size']
242242
]
243243

244+
size = (size[0] - 1, size[1] - 1)
245+
244246
rendered_fill = bool(Template(str(component.get('filled', True)), self.hass).async_render(variables=rendered_variables))
245247

246248
if rendered_fill:

0 commit comments

Comments
 (0)