Fix invalid type hint in scrape (#80543)

This commit is contained in:
epenet
2022-10-19 13:49:01 +02:00
committed by GitHub
parent 67d1dde69f
commit dc2a87b9ae

View File

@@ -82,7 +82,7 @@ async def async_setup_platform(
resource: str = config[CONF_RESOURCE]
method: str = "GET"
payload: str | None = None
headers: str | None = config.get(CONF_HEADERS)
headers: dict[str, str] | None = config.get(CONF_HEADERS)
verify_ssl: bool = config[CONF_VERIFY_SSL]
select: str | None = config.get(CONF_SELECT)
attr: str | None = config.get(CONF_ATTR)