docs: normalize & make basic corrections to documentation

This commit is contained in:
2025-08-01 21:19:47 -05:00
parent e13fd6ab5b
commit 292879a8a9
28 changed files with 132 additions and 229 deletions

View File

@@ -67,7 +67,7 @@ func toCamelCase(s string) string {
return result.String()
}
// validateHomeZone verifies that the home zone entity exists and is valid
// validateHomeZone verifies that the home zone entity exists and is valid.
func validateHomeZone(state ha.State, entityID string) error {
entity, err := state.Get(entityID)
if err != nil {
@@ -93,7 +93,7 @@ func validateHomeZone(state ha.State, entityID string) error {
return nil
}
// generate creates the entities.go file with constants for all Home Assistant entities
// generate creates the entities.go file with constants for all Home Assistant entities.
func generate(config Config) error {
if config.HomeZoneEntityId == "" {
config.HomeZoneEntityId = "zone.home"