diff --git a/CHANGELOG.md b/CHANGELOG.md index 9145251..cf2590f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## 0.1.1 - 2021-10-07 + +### Changed + +- Make client async functions non-private + ## 0.1.0 - 2021-10-06 Initial release. diff --git a/iolite_client/client.py b/iolite_client/client.py index 07b0b31..ba98b94 100755 --- a/iolite_client/client.py +++ b/iolite_client/client.py @@ -277,7 +277,7 @@ def _handle_device_response(self, response_dict: dict): f"Adding {type(device).__name__} ({device.name}) to {room_name}" ) - async def _async_discover(self): + async def async_discover(self): requests = [ # Get Rooms self.request_handler.get_subscribe_request("places"), @@ -292,11 +292,11 @@ async def _async_discover(self): def discover(self): """Discovers the entities registered within the heating system.""" - asyncio.run(self._async_discover()) + asyncio.run(self.async_discover()) - async def _async_set_temp(self, device, temp: float): + async def async_set_temp(self, device, temp: float): request = self.request_handler.get_action_request(device, temp) await asyncio.create_task(self._fetch_application([request])) def set_temp(self, device, temp: float): - asyncio.run(self._async_set_temp(device, temp)) + asyncio.run(self.async_set_temp(device, temp)) diff --git a/pyproject.toml b/pyproject.toml index 4f02c9f..7a9ef7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "iolite-client" -version = "0.1.0" +version = "0.1.1" description = "API client for interacting with IOLite's remote API" authors = ["Malachi Soord "] license = "MIT"