As of 2026-08-29 (commit a2454d3d2b2e), home-assistant/core contains 1,787,866 total lines: 1,513,961 code, 37,975 comments, 235,930 blank, across 14,415 files in 12 languages (top: Python 83.7%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving home-assistant/core to commit a2454d3d2b2e, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.
This is a very large codebase by counted code lines. Code represents 84.7% of all lines, comments represent 2.1%, and the repository averages 105 code lines per file. Python accounts for 83.7% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 10199 | 1530936 | 1266972 | 32415 | 231549 |
| JSON | 3382 | 187037 | 187024 | 0 | 13 |
| YAML | 792 | 56454 | 53102 | 1496 | 1856 |
| INI | 1 | 6495 | 5821 | 3 | 671 |
| TOML | 8 | 962 | 752 | 146 | 64 |
| Shell | 9 | 223 | 141 | 41 | 41 |
| Dockerfile | 3 | 104 | 68 | 20 | 16 |
| BASH | 3 | 80 | 54 | 10 | 16 |
| ReStructuredText | 1 | 33 | 24 | 0 | 9 |
| Autoconf | 1 | 3 | 3 | 0 | 0 |
| Markdown | 10 | 1584 | 0 | 1093 | 491 |
| Plain Text | 6 | 3955 | 0 | 2751 | 1204 |
Top language (Python 83.7%). Generated at 2026-08-29T08:59:04.360659906+00:00.
home-assistant/core has 1,787,866 total lines, including 1,513,961 code lines, 37,975 comment lines, and 235,930 blank lines.
OctoCounts resolved the public GitHub repository to commit a2454d3d2b2e, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from dev at commit a2454d3d2b2e on 2026-08-29T08:59:04.360659906+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: