mirror of
https://github.com/natekspencer/hacs-oasis_mini.git
synced 2025-11-14 08:03:52 -05:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
802ce0f9a8 | ||
|
|
2f25218df5 | ||
|
|
de36b6ea67 | ||
|
|
4e370d441c | ||
|
|
cf8e744fa4 | ||
|
|
f04438cac8 | ||
|
|
8fbf7664b1 | ||
|
|
5d7176ebaa | ||
|
|
005a621816 | ||
|
|
2feba20b76 | ||
|
|
e2f5727669 | ||
|
|
8650fd597a |
@@ -32,6 +32,7 @@ AUTOPLAY_MAP = {
|
|||||||
"2": "5 minutes",
|
"2": "5 minutes",
|
||||||
"3": "10 minutes",
|
"3": "10 minutes",
|
||||||
"4": "30 minutes",
|
"4": "30 minutes",
|
||||||
|
"5": "24 hours",
|
||||||
}
|
}
|
||||||
|
|
||||||
LED_EFFECTS: Final[dict[str, str]] = {
|
LED_EFFECTS: Final[dict[str, str]] = {
|
||||||
@@ -227,7 +228,7 @@ class OasisMini:
|
|||||||
"max_brightness": int(values[13]),
|
"max_brightness": int(values[13]),
|
||||||
"wifi_connected": _bit_to_bool(values[14]),
|
"wifi_connected": _bit_to_bool(values[14]),
|
||||||
"repeat_playlist": _bit_to_bool(values[15]),
|
"repeat_playlist": _bit_to_bool(values[15]),
|
||||||
"autoplay": AUTOPLAY_MAP.get(values[16]),
|
"autoplay": AUTOPLAY_MAP.get(value := values[16], value),
|
||||||
}
|
}
|
||||||
for key, value in status.items():
|
for key, value in status.items():
|
||||||
if (old_value := getattr(self, key, None)) != value:
|
if (old_value := getattr(self, key, None)) != value:
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user