Bump pysmarlaapi version

This commit is contained in:
Robin Lintermann 2025-04-30 12:52:39 +00:00
parent 2fa18c6838
commit b456af473b
6 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: FederwiegeConfigEntry) -
connection = Connection(HOST, token_str=entry.data.get(CONF_ACCESS_TOKEN, None))
# Check if token still has access
if not await connection.get_token():
if not await connection.refresh_token():
raise ConfigEntryAuthFailed("Invalid authentication")
federwiege = Federwiege(hass.loop, connection)

View File

@ -31,7 +31,7 @@ class SmarlaConfigFlow(ConfigFlow, domain=DOMAIN):
errors["base"] = "invalid_token"
return (errors, info)
if await conn.get_token():
if await conn.refresh_token():
info["serial_number"] = conn.token.serialNumber
info["token"] = conn.token.get_string()
else:

View File

@ -8,5 +8,5 @@
"iot_class": "cloud_push",
"loggers": ["pysmarlaapi", "pysignalr"],
"quality_scale": "bronze",
"requirements": ["pysmarlaapi==0.6.0"]
"requirements": ["pysmarlaapi==0.7.0"]
}

View File

@ -61,7 +61,7 @@ class SmarlaSwitch(SmarlaBaseEntity, SwitchEntity):
desc: SmarlaSwitchEntityDescription,
) -> None:
"""Initialize a Smarla switch."""
prop = federwiege.get_service(desc.service).get_property(desc.property)
prop = federwiege.get_property(desc.service, desc.property)
super().__init__(federwiege, prop)
self.entity_description = desc
self._attr_unique_id = f"{federwiege.serial_number}-{desc.key}"

2
requirements_all.txt generated
View File

@ -2335,7 +2335,7 @@ pysma==0.7.5
pysmappee==0.2.29
# homeassistant.components.smarla
pysmarlaapi==0.6.0
pysmarlaapi==0.7.0
# homeassistant.components.smartthings
pysmartthings==3.2.2

View File

@ -1908,7 +1908,7 @@ pysma==0.7.5
pysmappee==0.2.29
# homeassistant.components.smarla
pysmarlaapi==0.6.0
pysmarlaapi==0.7.0
# homeassistant.components.smartthings
pysmartthings==3.2.2