From c6641b0519aa30c358c5b53dbcacc642bb14db38 Mon Sep 17 00:00:00 2001 From: Johan Isacsson Date: Fri, 27 Aug 2021 18:25:08 +0200 Subject: [PATCH] Fixes Solaredge connection issue, v0.0.11 --- custom_components/sunspec/api.py | 2 +- custom_components/sunspec/const.py | 2 +- custom_components/sunspec/manifest.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/sunspec/api.py b/custom_components/sunspec/api.py index dbbabaa..3534e6d 100644 --- a/custom_components/sunspec/api.py +++ b/custom_components/sunspec/api.py @@ -121,7 +121,7 @@ def modbus_connect(self): f"Failed to connect to {self._host}:{self._port} slave id {self._slave_id}" ) _LOGGER.debug("Client connected, perform initial scan") - client.scan() + client.scan(connect=False) return client def read_model(self, model_id) -> dict: diff --git a/custom_components/sunspec/const.py b/custom_components/sunspec/const.py index c9f192d..5cf5e7e 100644 --- a/custom_components/sunspec/const.py +++ b/custom_components/sunspec/const.py @@ -3,7 +3,7 @@ NAME = "SunSpec" DOMAIN = "sunspec" DOMAIN_DATA = f"{DOMAIN}_data" -VERSION = "0.0.10" +VERSION = "0.0.11" ATTRIBUTION = "Data provided by SunSpec alliance - https://sunspec.org" ISSUE_URL = "https://github.com/cjne/ha-sunspec/issues" diff --git a/custom_components/sunspec/manifest.json b/custom_components/sunspec/manifest.json index cbf1752..0fd252c 100644 --- a/custom_components/sunspec/manifest.json +++ b/custom_components/sunspec/manifest.json @@ -1,7 +1,7 @@ { "domain": "sunspec", "name": "SunSpec", - "version": "0.0.10", + "version": "0.0.11", "documentation": "https://github.com/cjne/ha-sunspec", "issue_tracker": "https://github.com/cjne/ha-sunspec/issues", "dependencies": [],