Bump aioshelly to 0.3.1 (#39917)

This commit is contained in:
Paulus Schoutsen 2020-09-10 23:07:23 +02:00
parent b1b7944012
commit 5201410e39
4 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
"name": "Shelly", "name": "Shelly",
"config_flow": true, "config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/shelly", "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*" }], "zeroconf": [{ "type": "_http._tcp.local.", "name": "shelly*" }],
"codeowners": ["@balloob", "@bieniu"] "codeowners": ["@balloob", "@bieniu"]
} }

View File

@ -1,5 +1,5 @@
"""Switch for Shelly.""" """Switch for Shelly."""
from aioshelly import RelayBlock from aioshelly import Block
from homeassistant.components.switch import SwitchEntity from homeassistant.components.switch import SwitchEntity
from homeassistant.core import callback from homeassistant.core import callback
@ -28,7 +28,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
class RelaySwitch(ShellyBlockEntity, SwitchEntity): class RelaySwitch(ShellyBlockEntity, SwitchEntity):
"""Switch that controls a relay block on Shelly devices.""" """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.""" """Initialize relay switch."""
super().__init__(wrapper, block) super().__init__(wrapper, block)
self.control_result = None self.control_result = None

View File

@ -221,7 +221,7 @@ aiopvpc==2.0.2
aiopylgtv==0.3.3 aiopylgtv==0.3.3
# homeassistant.components.shelly # homeassistant.components.shelly
aioshelly==0.3.0 aioshelly==0.3.1
# homeassistant.components.switcher_kis # homeassistant.components.switcher_kis
aioswitcher==1.2.1 aioswitcher==1.2.1

View File

@ -131,7 +131,7 @@ aiopvpc==2.0.2
aiopylgtv==0.3.3 aiopylgtv==0.3.3
# homeassistant.components.shelly # homeassistant.components.shelly
aioshelly==0.3.0 aioshelly==0.3.1
# homeassistant.components.switcher_kis # homeassistant.components.switcher_kis
aioswitcher==1.2.1 aioswitcher==1.2.1