From 5201410e39e8d77bae52402ac7c14536403a5c8d Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 10 Sep 2020 23:07:23 +0200 Subject: [PATCH] Bump aioshelly to 0.3.1 (#39917) --- homeassistant/components/shelly/manifest.json | 2 +- homeassistant/components/shelly/switch.py | 4 ++-- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/shelly/manifest.json b/homeassistant/components/shelly/manifest.json index 1c12125fd89..b2d3a7b7795 100644 --- a/homeassistant/components/shelly/manifest.json +++ b/homeassistant/components/shelly/manifest.json @@ -3,7 +3,7 @@ "name": "Shelly", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/shelly", - "requirements": ["aioshelly==0.3.0"], + "requirements": ["aioshelly==0.3.1"], "zeroconf": [{ "type": "_http._tcp.local.", "name": "shelly*" }], "codeowners": ["@balloob", "@bieniu"] } diff --git a/homeassistant/components/shelly/switch.py b/homeassistant/components/shelly/switch.py index 5550240478f..0aaa6dbc911 100644 --- a/homeassistant/components/shelly/switch.py +++ b/homeassistant/components/shelly/switch.py @@ -1,5 +1,5 @@ """Switch for Shelly.""" -from aioshelly import RelayBlock +from aioshelly import Block from homeassistant.components.switch import SwitchEntity from homeassistant.core import callback @@ -28,7 +28,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities): class RelaySwitch(ShellyBlockEntity, SwitchEntity): """Switch that controls a relay block on Shelly devices.""" - def __init__(self, wrapper: ShellyDeviceWrapper, block: RelayBlock) -> None: + def __init__(self, wrapper: ShellyDeviceWrapper, block: Block) -> None: """Initialize relay switch.""" super().__init__(wrapper, block) self.control_result = None diff --git a/requirements_all.txt b/requirements_all.txt index b875fa5e4a2..dc1e4bd8951 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -221,7 +221,7 @@ aiopvpc==2.0.2 aiopylgtv==0.3.3 # homeassistant.components.shelly -aioshelly==0.3.0 +aioshelly==0.3.1 # homeassistant.components.switcher_kis aioswitcher==1.2.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 69b6d51416f..952d4018989 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -131,7 +131,7 @@ aiopvpc==2.0.2 aiopylgtv==0.3.3 # homeassistant.components.shelly -aioshelly==0.3.0 +aioshelly==0.3.1 # homeassistant.components.switcher_kis aioswitcher==1.2.1