diff --git a/internal/http/http.go b/internal/http/http.go new file mode 100644 index 0000000..cf41f61 --- /dev/null +++ b/internal/http/http.go @@ -0,0 +1,6 @@ +// http is used to interact with the home assistant +// REST API, currently only for retrieving state for +// a single entity_id +package http + +// TODO: impl http struct, should be initialized as part of App() diff --git a/internal/websocket/websocket.go b/internal/websocket/websocket.go new file mode 100644 index 0000000..ca8837c --- /dev/null +++ b/internal/websocket/websocket.go @@ -0,0 +1,7 @@ +// websocket is used to interact with the Home Assistant +// websocket API. All HA interaction is done via websocket +// except for cases explicitly called out in http package +// documentation. +package websocket + +// TODO: move existing websocket code here