Initialize hasspy project with basic structure and MQTT client implementation

This commit is contained in:
Edgar P. Burkhart 2025-03-08 23:39:33 +01:00
commit fa8bb1d8a9
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
9 changed files with 275 additions and 0 deletions

19
main.py Normal file
View file

@ -0,0 +1,19 @@
import tomllib
from hasspy.mqtt import HassClient
def main() -> None:
with open("config.toml", "rb") as file:
config = tomllib.load(file)
ha = HassClient(
"orchomenos",
config=config,
)
ha.loop_forever()
if __name__ == "__main__":
main()