Skip to content

Commit

Permalink
preparing release
Browse files Browse the repository at this point in the history
black
  • Loading branch information
coreGreenberet committed Dec 30, 2019
1 parent 2a0636c commit 102aba6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## Unreleased

## [0.10.15] 2019-12-30
### Added
- API
- Groups
Expand Down Expand Up @@ -270,7 +272,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- API
-- Support for the new HMIP Cloud Update

[Unreleased]: https://github.com/coreGreenberet/homematicip-rest-api/compare/0.10.14...HEAD
[Unreleased]: https://github.com/coreGreenberet/homematicip-rest-api/compare/0.10.15...HEAD
[0.10.15]: https://github.com/coreGreenberet/homematicip-rest-api/compare/0.10.14...0.10.15
[0.10.14]: https://github.com/coreGreenberet/homematicip-rest-api/compare/0.10.13...0.10.14
[0.10.13]: https://github.com/coreGreenberet/homematicip-rest-api/compare/0.10.12...0.10.13
[0.10.12]: https://github.com/coreGreenberet/homematicip-rest-api/compare/0.10.11...0.10.12
Expand Down
5 changes: 3 additions & 2 deletions homematicip_demo/fake_cloud_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,6 @@ async def post_hmip_group_setGroupLabel(self, request: web.Request) -> web.Respo
response = self.errorCode("INVALID_GROUP", 404)
return response


@validate_authorization
async def post_hmip_group_switching_alarm_setOnTime(
self, request: web.Request
Expand All @@ -836,7 +835,9 @@ async def post_hmip_group_switching_alarm_setOnTime(
g["onTime"] = js["onTime"]
return response

post_hmip_group_switching_linked_setOnTime = post_hmip_group_switching_alarm_setOnTime
post_hmip_group_switching_linked_setOnTime = (
post_hmip_group_switching_alarm_setOnTime
)

@validate_authorization
async def post_hmip_group_switching_setState(
Expand Down
13 changes: 9 additions & 4 deletions tests/aio_tests/test_async_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,12 @@ async def test_hot_water(no_ssl_fake_async_home: AsyncHome):

assert str(g) == "HOT_WATER HOT_WATER on(None) onTime(900.0) profileMode(AUTOMATIC)"


@pytest.mark.asyncio
async def test_switching_alarm_group(no_ssl_fake_async_home: AsyncHome):
g = no_ssl_fake_async_home.search_group_by_id("00000000-0000-0000-0000-000000000022")
g = no_ssl_fake_async_home.search_group_by_id(
"00000000-0000-0000-0000-000000000022"
)
assert isinstance(g, AlarmSwitchingGroup)

assert g.signalAcoustic == AcousticAlarmSignal.FREQUENCY_RISING
Expand All @@ -332,14 +335,16 @@ async def test_switching_alarm_group(no_ssl_fake_async_home: AsyncHome):

await g.test_signal_acoustic(AcousticAlarmSignal.FREQUENCY_HIGHON_OFF)
await g.test_signal_optical(OpticalAlarmSignal.BLINKING_ALTERNATELY_REPEATING)

await g.set_signal_acoustic(AcousticAlarmSignal.FREQUENCY_HIGHON_OFF)
await g.set_signal_optical(OpticalAlarmSignal.BLINKING_ALTERNATELY_REPEATING)
await g.set_on_time(5)

await no_ssl_fake_async_home.get_current_state()
g = no_ssl_fake_async_home.search_group_by_id("00000000-0000-0000-0000-000000000022")
g = no_ssl_fake_async_home.search_group_by_id(
"00000000-0000-0000-0000-000000000022"
)

assert g.signalAcoustic == AcousticAlarmSignal.FREQUENCY_HIGHON_OFF
assert g.signalOptical == OpticalAlarmSignal.BLINKING_ALTERNATELY_REPEATING
assert g.onTime == 5
assert g.onTime == 5

0 comments on commit 102aba6

Please sign in to comment.