Commit Graph

17 Commits

Author SHA1 Message Date
Matthias Loibl
b5d35235f8 Parse URL and pass it to clients
Right now, this SDK only works with IP:Port.
I'm however running on https://home.example.com and need https or wss and an implicit port 443.

Using net/url should be the best option.
2025-01-17 01:46:35 +01:00
Michael Haggerty
261a628542 SetupConnection(): remove excess slash in URI
The extra slash was added (presumably by accident) in
https://github.com/saml-dev/gome-assistant/pull/17.
2024-03-23 23:48:10 +01:00
Dominik Siebel
8b436ce4ee feat: support secure connections 2024-02-22 11:28:05 +01:00
Jiri Luzny
628544c7a0 Log and propagate error instead of using Fatal 2023-12-26 23:28:41 +01:00
Jiri Luzny
a4fbbe5ac3 Setup pretty logging and start refactoring of the library to slog 2023-12-09 21:08:50 +01:00
Lubos Dolezel
754ffafeae Don't exit the app on connection failures, expose the error in the API 2023-03-07 18:30:40 +01:00
Lubos Dolezel
f27cbfb299 Fix panics due to concurrent websocket writes 2023-02-24 11:49:26 +01:00
Sam Lewis
e58a75388e fix bug when registering multiple listeners and change sunrise/sunset to non-ha impl 2023-01-12 22:33:38 -05:00
Sam Lewis
c8128b5dba change to vanity url saml.dev 2022-12-12 00:15:00 -05:00
Sam Lewis
ce6649dd29 fix refactor error 2022-10-31 01:20:52 -04:00
Sam Lewis
8a59770936 enforce ToState when using Duration 2022-10-31 01:17:20 -04:00
Sam Lewis
83789184f0 event listeners working 2022-10-19 00:25:15 -04:00
Sam Lewis
8b888a2d89 set up entityListener and switch websocket library 2022-10-16 15:20:04 -04:00
Sam Lewis
e476a06aca remove log statements 2022-10-13 02:20:28 -04:00
Sam Lewis
7f9e346d34 design and impl BaseServiceRequest 2022-10-12 01:14:32 -04:00
Sam Lewis
4cf16d0d41 moved websocket code to websocket package 2022-10-11 22:58:44 -04:00
Sam Lewis
689a6ce4d3 add TODOs 2022-10-10 00:21:14 -04:00