diff --git a/custom_components/divoom_pixoo/light.py b/custom_components/divoom_pixoo/light.py index b2fddf8..6e3df0b 100644 --- a/custom_components/divoom_pixoo/light.py +++ b/custom_components/divoom_pixoo/light.py @@ -68,6 +68,10 @@ def available(self) -> bool | None: def supported_color_modes(self) -> set[ColorMode] | set[str] | None: return {ColorMode.BRIGHTNESS} + @property + def color_mode(self) -> ColorMode | str | None: + return ColorMode.BRIGHTNESS + @property def unique_id(self): return "light_" + str(self._config_entry.entry_id) diff --git a/custom_components/divoom_pixoo/pixoo64/_font.py b/custom_components/divoom_pixoo/pixoo64/_font.py index c3ce74f..c1dbf12 100644 --- a/custom_components/divoom_pixoo/pixoo64/_font.py +++ b/custom_components/divoom_pixoo/pixoo64/_font.py @@ -42,7 +42,9 @@ '|': [0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 3], '}': [1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 3], '~': [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 3], '$': [1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 3], '@': [0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 3], '%': [1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 3], - ' ': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3] + ' ': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3], + # '°': [1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 2] + '°': [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 2] } FONT_GICKO = {'0': [0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 6], @@ -116,7 +118,9 @@ '?': [0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0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