Skip to content

Commit

Permalink
Prep 0.1.1 (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
inverse authored Oct 7, 2021
1 parent 6374d1e commit c44815b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
8 changes: 4 additions & 4 deletions iolite_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -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))
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <me@malachisoord.com>"]
license = "MIT"
Expand Down

0 comments on commit c44815b

Please sign in to comment.