home-assistant/core has 1,655,962 source lines of code out of 1,953,178 total lines across 15,402 files, counted from the dev ref at commit f201094549da by the OctoCounts tokei engine on 2026-10-22. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-22 (commit f201094549da), home-assistant/core contains 1,953,178 total lines: 1,655,962 code, 42,945 comments, 254,271 blank, across 15,402 files in 12 languages (top: Python 83.6%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving home-assistant/core to commit f201094549da, 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.8% of all lines, comments represent 2.2%, and the repository averages 108 code lines per file. Python accounts for 83.6% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 10977 | 1670527 | 1384716 | 36389 | 249422 |
| JSON | 3511 | 203361 | 203347 | 0 | 14 |
| YAML | 866 | 64245 | 60515 | 1704 | 2026 |
| INI | 1 | 6976 | 6257 | 3 | 716 |
| TOML | 10 | 1058 | 828 | 157 | 73 |
| Shell | 9 | 224 | 142 | 41 | 41 |
| Dockerfile | 3 | 108 | 71 | 21 | 16 |
| BASH | 3 | 86 | 59 | 10 | 17 |
| ReStructuredText | 1 | 33 | 24 | 0 | 9 |
| Autoconf | 1 | 3 | 3 | 0 | 0 |
| Markdown | 13 | 2501 | 0 | 1798 | 703 |
| Plain Text | 7 | 4056 | 0 | 2822 | 1234 |
Top language (Python 83.6%). Generated at .
home-assistant/core has 1,953,178 total lines, including 1,655,962 code lines, 42,945 comment lines, and 254,271 blank lines.
OctoCounts resolved the public GitHub repository to commit f201094549da, 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 f201094549da on 2026-10-22T06:55:06.978129946+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for home-assistant/core on this page — 1,655,962 code lines across 12 languages, counted by tokei.