Skip to content

Commit

Permalink
rectangle size was calculated incorrectly and has now been fixed to t…
Browse files Browse the repository at this point in the history
…he correct size
  • Loading branch information
gickowtf committed Apr 8, 2024
1 parent a84c096 commit d35497b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/divoom_pixoo/const.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
DOMAIN = "divoom_pixoo"
VERSION = "1.10.1"
VERSION = "1.10.2"
CURRENT_ENTRY_VERSION = 2
2 changes: 1 addition & 1 deletion custom_components/divoom_pixoo/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 2 additions & 0 deletions custom_components/divoom_pixoo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d35497b

Please sign in to comment.