Bump PyOverkiz and improve code quality (late review) (#67075)

This commit is contained in:
Mick Vleeshouwer 2022-02-22 16:00:14 -08:00 committed by GitHub
parent cb190a7b17
commit 5e938ea61b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 5 deletions

View File

@ -3,7 +3,13 @@ from __future__ import annotations
from typing import Any, cast
from pyoverkiz.enums import OverkizCommand, OverkizState, UIClass, UIWidget
from pyoverkiz.enums import (
OverkizCommand,
OverkizCommandParam,
OverkizState,
UIClass,
UIWidget,
)
from homeassistant.components.cover import (
ATTR_POSITION,
@ -132,5 +138,7 @@ class LowSpeedCover(VerticalCover):
position = 100 - kwargs.get(ATTR_POSITION, 0)
await self.executor.async_execute_command(
OverkizCommand.SET_CLOSURE_AND_LINEAR_SPEED, position, "lowspeed"
OverkizCommand.SET_CLOSURE_AND_LINEAR_SPEED,
position,
OverkizCommandParam.LOWSPEED,
)

View File

@ -4,7 +4,7 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/overkiz",
"requirements": [
"pyoverkiz==1.3.6"
"pyoverkiz==1.3.8"
],
"zeroconf": [
{

View File

@ -1753,7 +1753,7 @@ pyotgw==1.1b1
pyotp==2.6.0
# homeassistant.components.overkiz
pyoverkiz==1.3.6
pyoverkiz==1.3.8
# homeassistant.components.openweathermap
pyowm==3.2.0

View File

@ -1125,7 +1125,7 @@ pyotgw==1.1b1
pyotp==2.6.0
# homeassistant.components.overkiz
pyoverkiz==1.3.6
pyoverkiz==1.3.8
# homeassistant.components.openweathermap
pyowm==3.2.0