mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 11:38:21 +00:00
Bump pysmarlaapi version
This commit is contained in:
parent
2fa18c6838
commit
b456af473b
@ -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))
|
connection = Connection(HOST, token_str=entry.data.get(CONF_ACCESS_TOKEN, None))
|
||||||
|
|
||||||
# Check if token still has access
|
# Check if token still has access
|
||||||
if not await connection.get_token():
|
if not await connection.refresh_token():
|
||||||
raise ConfigEntryAuthFailed("Invalid authentication")
|
raise ConfigEntryAuthFailed("Invalid authentication")
|
||||||
|
|
||||||
federwiege = Federwiege(hass.loop, connection)
|
federwiege = Federwiege(hass.loop, connection)
|
||||||
|
@ -31,7 +31,7 @@ class SmarlaConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
errors["base"] = "invalid_token"
|
errors["base"] = "invalid_token"
|
||||||
return (errors, info)
|
return (errors, info)
|
||||||
|
|
||||||
if await conn.get_token():
|
if await conn.refresh_token():
|
||||||
info["serial_number"] = conn.token.serialNumber
|
info["serial_number"] = conn.token.serialNumber
|
||||||
info["token"] = conn.token.get_string()
|
info["token"] = conn.token.get_string()
|
||||||
else:
|
else:
|
||||||
|
@ -8,5 +8,5 @@
|
|||||||
"iot_class": "cloud_push",
|
"iot_class": "cloud_push",
|
||||||
"loggers": ["pysmarlaapi", "pysignalr"],
|
"loggers": ["pysmarlaapi", "pysignalr"],
|
||||||
"quality_scale": "bronze",
|
"quality_scale": "bronze",
|
||||||
"requirements": ["pysmarlaapi==0.6.0"]
|
"requirements": ["pysmarlaapi==0.7.0"]
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ class SmarlaSwitch(SmarlaBaseEntity, SwitchEntity):
|
|||||||
desc: SmarlaSwitchEntityDescription,
|
desc: SmarlaSwitchEntityDescription,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Initialize a Smarla switch."""
|
"""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)
|
super().__init__(federwiege, prop)
|
||||||
self.entity_description = desc
|
self.entity_description = desc
|
||||||
self._attr_unique_id = f"{federwiege.serial_number}-{desc.key}"
|
self._attr_unique_id = f"{federwiege.serial_number}-{desc.key}"
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -2335,7 +2335,7 @@ pysma==0.7.5
|
|||||||
pysmappee==0.2.29
|
pysmappee==0.2.29
|
||||||
|
|
||||||
# homeassistant.components.smarla
|
# homeassistant.components.smarla
|
||||||
pysmarlaapi==0.6.0
|
pysmarlaapi==0.7.0
|
||||||
|
|
||||||
# homeassistant.components.smartthings
|
# homeassistant.components.smartthings
|
||||||
pysmartthings==3.2.2
|
pysmartthings==3.2.2
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -1908,7 +1908,7 @@ pysma==0.7.5
|
|||||||
pysmappee==0.2.29
|
pysmappee==0.2.29
|
||||||
|
|
||||||
# homeassistant.components.smarla
|
# homeassistant.components.smarla
|
||||||
pysmarlaapi==0.6.0
|
pysmarlaapi==0.7.0
|
||||||
|
|
||||||
# homeassistant.components.smartthings
|
# homeassistant.components.smartthings
|
||||||
pysmartthings==3.2.2
|
pysmartthings==3.2.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user