Skip to content

Commit

Permalink
Merge pull request #22 from msp1974/dev
Browse files Browse the repository at this point in the history
v0.0.34
  • Loading branch information
msp1974 authored Jun 27, 2022
2 parents 6b2e62a + a769ff4 commit cba2aff
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Drayton Wiser Hub API v2 v0.0.33
# Drayton Wiser Hub API v2 v0.0.34

This repository contains a simple API which queries the Drayton Wiser Heating sysystem used in the UK.

Expand Down Expand Up @@ -179,3 +179,6 @@ Documentation available in [info.md](https://github.com/msp1974/wiserHeatAPIv2/b
- Fixed issue where battery voltage over 3v shows 0% level
- Replaced device_ids/room_ids on schedules with assignments, assignment_ids, assignment_names
- Added ws_schedule_data and set_schedule_from_ws_data to support webservice for Wiser Schedule Card in HA

### 0.0.34
- Fixed issue where create_schedule was passing wrong schedule type to hub
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="wiserHeatAPIv2", # Replace with your own username
version="0.0.33",
version="0.0.34",
author="Mark Parker",
author_email="[email protected]",
description="An API for controlling the Drayton Wiser Heating system",
Expand Down
2 changes: 1 addition & 1 deletion wiserHeatAPIv2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "wiser-heat-api-v2"
__all__ = ["wiserAPI","wiserDiscovery"]

__VERSION__ = "0.0.33"
__VERSION__ = "0.0.34"

import logging
_LOGGER = logging.getLogger(__name__)
3 changes: 3 additions & 0 deletions wiserHeatAPIv2/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,8 +797,11 @@ def create_schedule(self, schedule_type: WiserScheduleTypeEnum, name: str, assig
type_data = {"Name": name}
if schedule_type in [WiserScheduleTypeEnum.lighting, WiserScheduleTypeEnum.level]:
type_data.update({"Type": 1})
schedule_type = WiserScheduleTypeEnum.level

if schedule_type == WiserScheduleTypeEnum.shutters:
type_data.update({"Type": 2})
schedule_type = WiserScheduleTypeEnum.level

schedule_data = {
"Assignments": assignments,
Expand Down

0 comments on commit cba2aff

Please sign in to comment.