fix: linting and formatting

This commit is contained in:
Richard Mann
2026-04-06 15:13:21 +10:00
parent af08d18d62
commit 652337e32c
6 changed files with 128 additions and 100 deletions

View File

@@ -34,9 +34,9 @@ async def async_setup_entry(
"""Set up the demo cover platform."""
coordinator: PVCoordinator = config_entry.runtime_data
model: Final[str|None] = coordinator.dev_details.get("model")
model: Final[str | None] = coordinator.dev_details.get("model")
entities: list[PowerViewCover] = []
if model in ["39"]:
if model == "39":
entities.append(PowerViewCoverTiltOnly(coordinator))
else:
entities.append(PowerViewCover(coordinator))