From fd65d4e3a9329a9afb9036eabe5732b90a5dbc86 Mon Sep 17 00:00:00 2001 From: BeardedTinker Date: Fri, 4 Sep 2020 20:37:51 +0200 Subject: [PATCH] HACS update ShellyForHASS beta6 - #16 --- custom_components/shelly/__init__.py | 2 +- custom_components/shelly/configuration_schema.py | 1 - custom_components/shelly/const.py | 2 +- custom_components/shelly/manifest.json | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/custom_components/shelly/__init__.py b/custom_components/shelly/__init__.py index d11a696c..24ddf1e2 100644 --- a/custom_components/shelly/__init__.py +++ b/custom_components/shelly/__init__.py @@ -42,7 +42,7 @@ _LOGGER = logging.getLogger(__name__) -__version__ = "0.2.0-b5" +__version__ = "0.2.0-b6" VERSION = __version__ async def async_setup(hass, config): diff --git a/custom_components/shelly/configuration_schema.py b/custom_components/shelly/configuration_schema.py index 3e0f5d3c..b3d528fb 100644 --- a/custom_components/shelly/configuration_schema.py +++ b/custom_components/shelly/configuration_schema.py @@ -13,7 +13,6 @@ vol.Optional(CONF_NAME): cv.string, }) - SETTING_SCHEMA = vol.Schema({ vol.Optional(CONF_DECIMALS): cv.positive_int, vol.Optional(CONF_DIV): cv.positive_int, diff --git a/custom_components/shelly/const.py b/custom_components/shelly/const.py index 124a4206..4ad9c408 100644 --- a/custom_components/shelly/const.py +++ b/custom_components/shelly/const.py @@ -70,7 +70,7 @@ 'total_returned' : {CONF_DECIMALS:2, CONF_DIV:1000, CONF_UNIT:'kWh'}, 'current' : {CONF_UNIT:'A', CONF_DECIMALS:1}, 'current_consumption' : {CONF_UNIT:'W'}, - 'voltage' : {CONF_UNIT:'V',CONF_DECIMALS:0}, + 'voltage' : {CONF_UNIT:'V', CONF_DECIMALS:0}, 'power_factor' : {CONF_DECIMALS:1}, 'uptime': {CONF_DIV:3600, CONF_UNIT:'h'}, 'rssi': {CONF_UNIT:'dB'}, diff --git a/custom_components/shelly/manifest.json b/custom_components/shelly/manifest.json index f72a0494..a05cd488 100644 --- a/custom_components/shelly/manifest.json +++ b/custom_components/shelly/manifest.json @@ -5,5 +5,5 @@ "documentation": "https://github.com/StyraHem/ShellyForHASS/blob/master/README.md", "dependencies": ["zeroconf"], "codeowners": ["@hakana","@StyraHem"], - "requirements": ["pyShelly==0.2.6"] + "requirements": ["pyShelly==0.2.8"] }