Address late Airzone strict typing comments (#71627)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Álvaro Fernández Rojas 2022-05-10 10:00:38 +02:00 committed by GitHub
parent 0f41f56998
commit 46becd4023
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -162,7 +162,7 @@ class AirzoneClimate(AirzoneZoneEntity, ClimateEntity):
params[API_ON] = 1 params[API_ON] = 1
await self._async_update_hvac_params(params) await self._async_update_hvac_params(params)
async def async_set_temperature(self, **kwargs: dict[str, Any]) -> None: async def async_set_temperature(self, **kwargs: Any) -> None:
"""Set new target temperature.""" """Set new target temperature."""
params = { params = {
API_SET_POINT: kwargs.get(ATTR_TEMPERATURE), API_SET_POINT: kwargs.get(ATTR_TEMPERATURE),

View File

@ -31,10 +31,9 @@ class AirzoneUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]):
_LOGGER, _LOGGER,
name=DOMAIN, name=DOMAIN,
update_interval=SCAN_INTERVAL, update_interval=SCAN_INTERVAL,
update_method=self._async_update,
) )
async def _async_update(self) -> dict[str, Any]: async def _async_update_data(self) -> dict[str, Any]:
"""Update data via library.""" """Update data via library."""
async with async_timeout.timeout(AIOAIRZONE_DEVICE_TIMEOUT_SEC): async with async_timeout.timeout(AIOAIRZONE_DEVICE_TIMEOUT_SEC):
try: try: