Autoformating and cleanup

This commit is contained in:
2022-07-13 23:12:15 +00:00
parent e4a65f3077
commit a3cd0c9fd6
10 changed files with 65 additions and 129 deletions

View File

@@ -1,8 +1,5 @@
import logging
import attr
from dataclasses import dataclass
from homeassistant.loader import bind_hass
STORAGE_VERSION = 1
STORAGE_KEY = "browser_mod.storage"
@@ -71,8 +68,8 @@ class BrowserModStore:
async def updated(self):
self.dirty = True
for l in self.listeners:
l(attr.asdict(self.data))
for listener in self.listeners:
listener(attr.asdict(self.data))
await self.save()
def asdict(self):