Merge pull request #30 from flavio-fernandes/fix.issue.29

set_text_color: check if label is None before assigning value
This commit is contained in:
Melissa LeBlanc-Williams 2021-04-12 11:28:22 -07:00 committed by GitHub
commit 41ffc84b97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -307,7 +307,8 @@ class PortalBase:
if self._text[index]:
color = self.html_color_convert(color)
self._text[index]["color"] = color
self._text[index]["label"].color = color
if self._text[index]["label"] is not None:
self._text[index]["label"].color = color
def exit_and_deep_sleep(self, sleep_time):
"""