Coverage for custom_components/ha_repl_server/const.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.17.2, created at 2026-11-17 19:05 +0000

1"""Constants for Home Assistant REPL.""" 

2 

3DOMAIN = "ha_repl_server" 

4DEFAULT_SESSION = "default" 

5 

6# What the integration's options can switch on and off: `expose_<name>`, 

7# with `expose_<name>_until` (an ISO time) when it is on only for a while. 

8CAPABILITIES = ("hass", "sql") 

9 

10# What `sql` needs, beyond Home Assistant itself. Not manifest requirements: 

11# installed and imported at setup instead (see __init__.py's _load_sql), so 

12# if they can't be - no wheel for this platform, say - only `sql` is lost, 

13# not the whole integration. 

14SQL_REQUIREMENTS = ["nanoarrow>=0.9.0", "sqlparse>=0.5.0"] 

15 

16# Rows a query gives back unless it says otherwise. 

17DEFAULT_MAX_ROWS = 1000 

18 

19# Completion's limits, as the integration's options give them. 

20DEFAULT_COMPLETE_LIMIT = 500 

21DEFAULT_COMPLETE_BUDGET_MS = 500