style: apply animal island theme to led panel

This commit is contained in:
2026-05-19 19:35:49 +08:00
parent 120a7f5624
commit 5628ab0ffc
2 changed files with 77 additions and 38 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ def main():
try:
import urllib.request as _urlreq
html = _urlreq.urlopen(f'http://127.0.0.1:{port}/', timeout=5).read().decode()
assert 'RGB LED 控制台' in html and '关闭全部' in html and 'oncount' in html
assert 'RGB LED 岛屿控制台' in html and 'Animal-Island 风格面板' in html and '关闭全部' in html and 'oncount' in html
leds = req(port, '/api/leds')
names = [led['name'] for led in leds['leds']]
assert leds['ok'] and names == ['blue:wan', 'green:wlan', 'red:power']