Address late review of Switcher button (#82981)

This commit is contained in:
Shay Levy 2022-11-30 14:32:45 +02:00 committed by GitHub
parent f180f15bde
commit cd2bb292ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 5 deletions

View File

@ -16,7 +16,7 @@ from aioswitcher.device import DeviceCategory
from homeassistant.components.button import ButtonEntity, ButtonEntityDescription
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers import device_registry
from homeassistant.helpers.dispatcher import async_dispatcher_connect
@ -93,7 +93,6 @@ async def async_setup_entry(
) -> None:
"""Set up Switcher button from config entry."""
@callback
async def async_add_buttons(coordinator: SwitcherDataUpdateCoordinator) -> None:
"""Get remote and add button from Switcher device."""
if coordinator.data.device_type.category == DeviceCategory.THERMOSTAT:

View File

@ -3,7 +3,7 @@
"name": "Switcher",
"documentation": "https://www.home-assistant.io/integrations/switcher_kis/",
"codeowners": ["@tomerfi", "@thecode"],
"requirements": ["aioswitcher==3.2.0"],
"requirements": ["aioswitcher==3.2.1"],
"quality_scale": "platinum",
"iot_class": "local_push",
"config_flow": true,

View File

@ -273,7 +273,7 @@ aioslimproto==2.1.1
aiosteamist==0.3.2
# homeassistant.components.switcher_kis
aioswitcher==3.2.0
aioswitcher==3.2.1
# homeassistant.components.syncthing
aiosyncthing==0.5.1

View File

@ -248,7 +248,7 @@ aioslimproto==2.1.1
aiosteamist==0.3.2
# homeassistant.components.switcher_kis
aioswitcher==3.2.0
aioswitcher==3.2.1
# homeassistant.components.syncthing
aiosyncthing==0.5.1