Remove sma from mypy ignore list (#64510)
This commit is contained in:
parent
03bf2cdd56
commit
e248ef1dd7
4 changed files with 9 additions and 4 deletions
|
@ -1,6 +1,8 @@
|
|||
"""SMA Solar Webconnect interface."""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import pysma
|
||||
|
||||
from homeassistant.components.sensor import (
|
||||
|
@ -34,6 +36,9 @@ async def async_setup_entry(
|
|||
used_sensors = sma_data[PYSMA_SENSORS]
|
||||
device_info = sma_data[PYSMA_DEVICE_INFO]
|
||||
|
||||
if TYPE_CHECKING:
|
||||
assert config_entry.unique_id
|
||||
|
||||
entities = []
|
||||
for sensor in used_sensors:
|
||||
entities.append(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue