Ensure powerwall config flow title_placeholders items are [str, str] (#127205)

This commit is contained in:
Erik Montnemery 2024-10-01 14:33:05 +02:00 committed by GitHub
parent a5135cf2c3
commit ee8f4a5367
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -188,9 +188,9 @@ class PowerwallConfigFlow(ConfigFlow, domain=DOMAIN):
) -> ConfigFlowResult:
"""Confirm a discovered powerwall."""
assert self.ip_address is not None
assert self.title is not None
assert self.unique_id is not None
if user_input is not None:
assert self.title is not None
return self.async_create_entry(
title=self.title,
data={