Debian Codegraph @

README.md

raw
1 # hass-nabucasa
2
3 `hass-nabucasa` is the underlying library that enables Home Assistant to connect to and utilize Nabu Casa cloud services.
4
5 This library handles a range of cloud-related functionality including:
6
7 - Authentication and account management
8 - Remote UI connections via [SniTun](https://www.github.com/NabuCasa/snitun)
9 - API interactions with Nabu Casa cloud services
10 - Voice processing capabilities
11 - ACME certificate management
12 - Google Assistant and Alexa integration
13 - Cloud webhook management
14 - Cloud file storage and management
15
16 ## Installation
17
18 ```bash
19 python3 -m pip install hass-nabucasa==x.y.z
20 ```
21
22 ## Release process
23
24 `hass-nabucasa` is released through GitHub and published to [PyPI].
25 The release process is automated and triggered through the GitHub UI:
26
27 1. Go to the [GitHub Releases page][releases].
28 2. Find the draft release created by release-drafter.
29 3. Verify that the tag and name are the expected ones (e.g., `1.2.3`)
30 4. Publish the release (and set it as the latest release)
31
32 Once published, GitHub Actions workflows automatically:
33
34 - Build the package
35 - Publish to [PyPI]
36
37 There is no need to manually update version information in the codebase.
38
39 ## Development and contributing
40
41 ### Development environment
42
43 We recommend using Visual Studio Code with the official Dev Container extension for development. This provides a consistent, pre-configured environment with all dependencies installed.
44
45 This will automatically set up a development environment with all required dependencies.
46
47 ### Running tests
48
49 ```bash
50 scripts/test
51 ```
52
53 ### Code quality
54
55 This project uses pre-commit hooks for code quality checks:
56
57 ```bash
58 scripts/lint
59 ```
60
61 ### Updating voice data
62
63 To update the voice data with the latest from Azure:
64
65 ```bash
66 python3 -m scripts.update_voice_data
67 ```
68
69 You will need to fetch an Azure TTS token. You can generate one by running the [sample key generator server](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/js/browser/server) and visiting `http://localhost:3001/api/get-speech-token`.
70
71 [releases]: https://github.com/NabuCasa/hass-nabucasa/releases
72 [PyPI]: https://pypi.org/project/hass-nabucasa/