Commit Graph

25 Commits

Author SHA1 Message Date
Roberto Cosenza 14c5271ecd When the hub responds with an error, print the message the we sent so that we can debug more easily where the problem is. 2021-07-08 12:17:25 +00:00
Roberto Cosenza f8803a7b15 Lint and fix some subtle bugs 2021-06-23 11:58:21 +01:00
Roberto Cosenza dbda9b4157 Adding support to set hc mode 2021-06-23 11:58:21 +01:00
Andrius Štikonas add4dfea10 Fix linter. 2021-06-19 23:07:18 +01:00
Roberto Cosenza 43dbc27c0f Add support to write the 'cooling temperature' 2021-06-19 22:24:09 +01:00
Dave O'Connor e138bd95cd Set default timeout to 60s 2021-03-30 11:52:13 +00:00
Anton Tolchanov 18292bf629 Add retries, close connection on timeout (fix #6) 2021-02-09 09:37:33 +00:00
Dave O'Connor e769da03f7 Add error checking/exception to connection code.
Add a timeout for async read/write to the stream.
2021-02-07 19:46:35 +00:00
Dave O'Connor 53a3d0b5a2 Specify type hints with defaults in NeoHub.
Implement the three methods with optional datetimes.

Implement permit_join with optional timeout.
2021-01-28 19:12:20 +00:00
Dave O'Connor e10b1de9ae Pass the RHS of the enum value rather than the whole element. 2021-01-24 17:42:41 +00:00
Dave O'Connor 1f44cde9a3 Add flake8 lint CI pipeline and fix existing code for compliance. 2021-01-23 21:54:55 +00:00
Dave O'Connor 1756eb86d4 Add our own exceptions, and use throughout for genuine usage errors. 2021-01-23 12:20:29 +00:00
Dave O'Connor aa6020c621 Allow for the hub not returning some of our desired attributes. 2021-01-19 21:51:48 +00:00
Andrius Štikonas 27b997df37 Add set_timer_hold function to netostat class. 2021-01-03 13:47:33 +00:00
Andrius Štikonas 278867c4fc Rename set_temp to set_target_temperature. 2021-01-03 13:42:52 +00:00
Andrius Štikonas 2fc8544a34 Check value and not just presense of TIMECLOCK and THERMOSTAT attributes. 2021-01-03 13:34:55 +00:00
Andrius Štikonas 7893ed66fd Initial support for timeclocks. 2021-01-02 22:42:56 +00:00
Andrius Štikonas db381d04e4 Move functionality of neohub.connect() into __init__. 2020-12-31 23:42:02 +00:00
Andrius Štikonas 9e59d5254b Fix rate_of_change function. 2020-12-27 20:30:12 +00:00
Andrius Štikonas 0d5074fd4e Remove commented out get_zones function. 2020-12-27 20:22:52 +00:00
Andrius Štikonas 3d839aeaf9 Rename holiday to set_holiday. 2020-12-27 20:21:22 +00:00
Andrius Štikonas fed09bdaff Add dependency on async_property. 2020-12-27 20:18:22 +00:00
Andrius Štikonas c9041e7caf Add target_temperature_step funtion and fix firmware version discovery. 2020-12-27 20:01:33 +00:00
Andrius Štikonas 464aa195f9 Fix imports after rearranging directory structure. 2020-12-27 19:06:12 +00:00
Andrius Štikonas c45fb963c9 Rearrange directory structure. 2020-12-27 18:31:26 +00:00