Commit Graph

104 Commits

Author SHA1 Message Date
Lawrence Akka 54ca38d4d6 Revise documentation for websockets 2022-12-02 09:49:33 +00:00
Andrius Štikonas b68c294a25 Also install websockets in CI. 2022-12-01 20:33:33 +00:00
Andrius Štikonas 204bff812c Add websockets to dependencies. 2022-12-01 20:31:34 +00:00
Andrius Štikonas 268a27ac55 Add end of file newline. 2022-12-01 20:29:25 +00:00
Lawrence Akka 81a11dfa43 Add pytest.ini and fix tests 2022-12-01 11:41:11 +00:00
Lawrence Akka 879e43789d Fix typo 2022-12-01 11:21:56 +00:00
Lawrence Akka 92df4f9722 Allow use of new websocket connection method 2022-11-30 11:19:56 +00:00
ribbal 2e5cc5ecf4 Remove int conversion of preheat_attribute 2022-01-12 22:43:18 +00:00
Andrius Štikonas 4d6e2441db Fix copy-paste error with floor_limit
Closes #10
2022-01-07 23:33:56 +00:00
Balbir Boughan dfc4382f01 Fix name property for heatmiser Repeaters 2022-01-06 18:24:42 +00:00
Balbir Boughan 97b5a395db Fix name property for heatmiser Repeaters 2022-01-06 18:21:02 +00:00
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
Andrius Štikonas d811131f8a Bump version to 0.8. 2021-06-23 20:27:11 +01: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
Andrius Štikonas ee252edc18 Bump version to 0.7. 2021-03-30 19:20:44 +01:00
Dave O'Connor e138bd95cd Set default timeout to 60s 2021-03-30 11:52:13 +00:00
Andrius Štikonas ec43960560 Bump version to 0.6. 2021-02-19 10:23:20 +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 90d5969e53 Merge branch 'knyar/neohubapi-tests' 2021-02-07 18:41:28 +00:00
Anton Tolchanov 7117c890f0 Add a few tests for NeoHub._send 2021-02-07 18:37:16 +00:00
Dave O'Connor 7bbc4d3f96 update to 0.5 2021-02-06 13:42:34 +00:00
Dave O'Connor b55ea393cb Expand our own enums. 2021-01-31 21:16:32 +00:00
Dave O'Connor 4792fc8249 Resolve "Add README for CLI" 2021-01-31 21:15:36 +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 d21c54b4a6 Eliminate the boilerplate approach: - use method signatures to build a callable
other fixes: Standardise capitalisation of NeoHub. Import inspect
entirely.

Still TODO: How to specify neostats on command line.
2021-01-27 12:17:24 +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 22d3be4131 Merge branch 'master' of gitlab.com:neohubapi/neohubapi into neohub_cli 2021-01-23 12:48:56 +00:00
Dave O'Connor a1248e219e Fix typo and alignment per review. 2021-01-23 12:45:23 +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 5c590b3ce0 correct comment. 2021-01-23 11:30:03 +00:00
Dave O'Connor 69819d81b2 Prettify output, add __str__ to neostat class. 2021-01-21 11:16:39 +00:00
Dave O'Connor 2430b7d5cd Add initial neohub_cli 2021-01-20 01:21:44 +00:00
Andrius Štikonas f2224fbb7c Bump version to 0.4 2021-01-19 21:54:46 +00:00
Andrius Štikonas 54362b229c Add attribution to neostat.py too. 2021-01-19 21:53:47 +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 5ef21a23fd Merge branch 'master' into 'master'
Add none-checking to schedule_format_int_to_enum

See merge request neohubapi/neohubapi!3
2021-01-19 20:38:01 +00:00
Dave O'Connor b54e00fbe3 Add none-checking to schedule_format_int_to_enum 2021-01-19 14:04:07 +00:00
Andrius Štikonas c6d62b5852 Bump version to 0.3 2021-01-03 14:10:04 +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 5fc952110e Fix incompletely renamed set_frost function. 2021-01-03 13:39:19 +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 ec92300199 Update README to new API. 2021-01-02 22:55:13 +00:00
Andrius Štikonas 7893ed66fd Initial support for timeclocks. 2021-01-02 22:42:56 +00:00
Andrius Štikonas 65b9667d99 Fix parsing of HOLD_TIME attribute which can be larger than 24h. 2021-01-02 17:14:10 +00:00