diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61d54a1..b319688 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install pyplumio==0.5.9 pytest-homeassistant-custom-component psutil-home-assistant fnv-hash-fast aiohttp_cors mypy pylint flake8 flake8-pyproject black + python -m pip install pyplumio==0.5.10 pytest-homeassistant-custom-component psutil-home-assistant fnv-hash-fast aiohttp_cors mypy pylint flake8 flake8-pyproject black - name: Check typing run: | diff --git a/custom_components/plum_ecomax/connection.py b/custom_components/plum_ecomax/connection.py index 45c76ea..4412f64 100644 --- a/custom_components/plum_ecomax/connection.py +++ b/custom_components/plum_ecomax/connection.py @@ -65,13 +65,13 @@ async def async_get_connection_handler( return pyplumio.TcpConnection( data[CONF_HOST], data.get(CONF_PORT, DEFAULT_PORT), - ethernet_parameters=ethernet, + protocol=pyplumio.AsyncProtocol(ethernet_parameters=ethernet), ) return pyplumio.SerialConnection( data.get(CONF_DEVICE, DEFAULT_DEVICE), int(data.get(CONF_BAUDRATE, DEFAULT_BAUDRATE)), - ethernet_parameters=ethernet, + protocol=pyplumio.AsyncProtocol(ethernet_parameters=ethernet), ) diff --git a/custom_components/plum_ecomax/manifest.json b/custom_components/plum_ecomax/manifest.json index 322b38a..ccb6b2a 100644 --- a/custom_components/plum_ecomax/manifest.json +++ b/custom_components/plum_ecomax/manifest.json @@ -16,7 +16,7 @@ "pyplumio" ], "requirements": [ - "pyplumio==0.5.9" + "pyplumio==0.5.10" ], "version": "0.4.1-beta.4" } \ No newline at end of file