Skip to content

Commit 1649a68

Browse files
committed
fix background color check for black color 0
1 parent bc70c46 commit 1649a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_display_text/label.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def _update_text(
292292
self._text = new_text
293293
self._boundingbox = (left, top, left + right, bottom - top)
294294

295-
if self.background_color:
295+
if self.background_color is not None:
296296
self._update_background_color(self._background_color)
297297

298298
@property

0 commit comments

Comments
 (0)