Commit Graph

793 Commits (a8175b785f1445319cec7edae411a78272d51707)

Author SHA1 Message Date
Andrew Sayre a135b4bb43
Enable strict typing for HEOS (#136797) 2025-01-29 07:28:13 +01:00
tronikos a2b5a96bc9
Add Google Drive integration for backup (#134576)
* Add Google Drive integration for backup

* Add test_config_flow

* Stop using aiogoogle

* address a few comments

* Check folder exists in setup

* fix test

* address comments

* fix

* fix

* Use ChunkAsyncStreamIterator in helpers

* repair-issues: todo

* Remove check if folder exists in the reatuh flow. This is done in setup.

* single_config_entry": true

* Add test_init.py

* Store into backups.json to avoid 124 bytes per property limit

* Address comments

* autouse=True on setup_credentials

* Store metadata in description and remove backups.json

* improvements

* timeout downloads

* library

* fixes

* strings

* review

* ruff

* fix test

* Set unique_id

* Use slugify in homeassistant.util

* Fix

* Remove RefreshError

* review

* push more fields to the test constant

---------

Co-authored-by: Joostlek <joostlek@outlook.com>
2025-01-28 21:43:30 -08:00
Josef Zweck 5695582387
Add OneDrive as backup provider (#135121)
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>
2025-01-28 14:57:46 +00:00
Allen Porter 58b4556a1d
Add the Model Context Protocol integration (#135058)
* Add the Model Context Protocol integration

* Improvements to mcp integration

* Move the API prompt constant

* Update config flow error handling

* Update test descriptions

* Update tests/components/mcp/test_config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update tests/components/mcp/test_config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Address PR feedback

* Update homeassistant/components/mcp/coordinator.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Move tool parsing to the coordinator

* Update session handling not to use a context manager

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2025-01-27 14:38:52 -05:00
Markus Adrario a56c37a508
Add more sensors to homee (#136445) 2025-01-24 16:02:14 +01:00
Jan Bouwhuis 59d677ba3e
Enable strict typing for incomfort integration (#136291)
* Enable strict typing for incomfort integration

* Comply to strict typing

* Wrap in bool
2025-01-23 19:21:39 +01:00
epenet 83e826219a
Enable strict-typing in lovelace (#136327) 2025-01-23 18:37:58 +01:00
Manu 595f49ee9f
Set strict-typing in Habitica quality scale record (#135899)
* Set strict-typing in Habitica quality scale record

* cast
2025-01-18 16:35:35 +01:00
Marc Mueller 239aa94b6f
Update Python version for mypy to 3.13 (#135636) 2025-01-15 01:43:13 +01:00
JJ 504ed83ffb
Add person component to strict type checking (#132754) 2025-01-13 20:11:17 +01:00
qbus-iot 2d2f4f5cec
Add new integration Qbus (#127280)
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>
Co-authored-by: Thomas D <11554546+thomasddn@users.noreply.github.com>
2025-01-13 19:06:52 +00:00
Joris Pelgröm 4129697dd9
Add LetPot integration (#134925) 2025-01-08 21:38:52 +01:00
G Johansson bc22e34fc3
Add python_script to strict typing (#134822) 2025-01-05 22:22:54 -05:00
Marc Mueller afa95293dc
Enable strict typing for pandora (#134536) 2025-01-03 13:23:39 +01:00
Allen Porter a5d0c3528c
Add the Model Context Protocol Server integration (#134122)
* Add the Model Context Protocol Server integration

* Remove unusued code in init

* Fix comment wording

* Use util.uild for unique ids

* Set config entry title to the LLM API name

* Extract an SSE parser and update comments

* Update comments and defend against already closed sessions

* Shorten description

* Update homeassistant/components/mcp_server/__init__.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Change integration type to service

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2025-01-01 19:38:33 -05:00
Joost Lekkerkerker 268c21addd
Add Overseerr integration (#133981)
* Add Overseerr integration

* Add Overseerr integration

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix
2024-12-28 11:50:36 +01:00
Joost Lekkerkerker cbb4c06195
Add Mealie to strict typing (#133644) 2024-12-20 15:17:08 +01:00
Franck Nijhof bb2d027532
Add Peblar Rocksolid EV Chargers integration (#133501)
* Add Peblar Rocksolid EV Chargers integration

* Process review comments
2024-12-18 19:11:13 +01:00
Marc Mueller 2d8e693cdb
Update mypy-dev to 1.14.0a7 (#133390) 2024-12-17 07:34:59 +01:00
Manu 314076b85f
Replace aiogithub dependency with pynecil update check (#133213) 2024-12-15 11:48:11 +01:00
Sid 0c8db8c8d6
Add eheimdigital integration (#126757)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2024-12-13 22:29:18 +01:00
Cyrill Raccaud 56db536883
Add Cookidoo integration (#129800) 2024-12-12 20:23:14 +01:00
Noah Husby e39897ff9a
Enforce strict typing for Russound RIO (#132982) 2024-12-12 07:55:29 +01:00
Marc Mueller 0e8961276f
Enable pydantic.v1 mypy plugin (#132907) 2024-12-11 10:50:42 +01:00
Franck Nijhof eddb416f6d
Remove Stookalert integration (#132569) 2024-12-09 08:30:18 +01:00
Marc Mueller 60fd9d5027
Update mypy-dev to 1.14.0a6 (#132440) 2024-12-05 21:34:05 -06:00
Klaas Schoute abd3466d19
Add powerfox integration (#131640) 2024-12-04 00:35:50 +01:00
epenet d596b4169d
Add strict_typing rule to quality_scale hassfest validation (#131877)
* Add strict_typing rule to quality_scale hassfest validation

* Add acaia to .strict-typing
2024-11-28 22:05:34 +01:00
David Knowles a831c37511
Enable strict typing for Schlage (#131734) 2024-11-28 08:29:15 +01:00
Franck Nijhof 4702d8ddb0
Enable strict typing for Stookwijzer (#131590) 2024-11-26 08:48:42 +01:00
starkillerOG 65652c0adb
Enable strict typing for Reolink (#131239) 2024-11-22 11:47:49 +01:00
G Johansson 1f32e02ba2
Add Nord Pool integration (#129983) 2024-11-08 15:10:51 +01:00
nasWebio ed1366f463
Add NASweb integration (#98118)
* Add NASweb integration

* Fix DeviceInfo import

* Remove commented out code

* Change class name for uniquness

* Drop CoordinatorEntity inheritance

* Rename class Output to more descriptive: RelaySwitch

* Update required webio-api version

* Implement on-the-fly addition/removal of entities

* Set coordinator name matching device name

* Set entities with too old status as unavailable

* Drop Optional in favor of modern typing

* Fix spelling of a variable

* Rename commons to more fitting name: helper

* Remove redundant code

* Let unload fail when there is no coordinator

* Fix bad docstring

* Rename cord to coordinator for clarity

* Remove default value for pop and let it raise exception

* Drop workaround and use get_url from helper.network

* Use webhook to send data from device

* Deinitialize coordinator when no longer needed

* Use Python formattable string

* Use dataclass to store integration data in hass.data

* Raise ConfigEntryNotReady when appropriate

* Refactor NASwebData class

* Move RelaySwitch to switch.py

* Fix ConfigFlow tests

* Create issues when entry fails to load

* Respond when correctly received status update

* Depend on webhook instead of http

* Create issue when status is not received during entry set up

* Make issue_id unique across integration entries

* Remove unnecessary initializations

* Inherit CoordinatorEntity to avoid code duplication

* Optimize property access via assignment in __init__

* Use preexisting mechanism to fill schema with user input

* Fix translation strings

* Handle unavailable or unreachable internal url

* Implement custom coordinator for push driven data updates

* Move module-specific constants to respective modules

* Fix requirements_all.txt

* Fix CODEOWNERS file

* Raise ConfigEntryError instead of issue creation

* Fix entity registry import

* Use HassKey as key in hass.data

* Use typed ConfigEntry

* Store runtime data in config entry

* Rewrite to be more Pythonic

* Move add/remove of switch entities to switch.py

* Skip unnecessary check

* Remove unnecessary type hints

* Remove unnecessary nonlocal

* Use a more descriptive docstring

* Add docstrings to NASwebCoordinator

* Fix formatting

* Use correct return type

* Fix tests to align with changed code

* Remove commented code

* Use serial number as config entry id

* Catch AbortFlow exception

* Update tests to check ConfigEntry Unique ID

* Remove unnecessary form abort
2024-11-08 12:03:32 +01:00
Marc Mueller 4f20977a8e
Update mypy-dev to 1.14.0a2 (#129625) 2024-11-02 19:15:50 +01:00
Jozef Kruszynski 568bdef61f
Add musicassistant integration (#128919)
Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
2024-10-30 14:57:01 +01:00
Robert Resch 59872b5698
Enable strict typing for go2rtc (#129374) 2024-10-29 08:25:49 +01:00
Noah Husby f12cc523b4
Enforce strict typing for Cambridge Audio (#129004) 2024-10-25 18:41:33 +02:00
Joost Lekkerkerker 49fafcc68a
Add Spotify to strict typing (#128846) 2024-10-20 15:51:06 +02:00
Jan-Philipp Benecke 82e9792b4d
Remove deprecated map integration (#128529) 2024-10-16 20:46:00 +02:00
Marc Mueller e6bba49bcd
Add strict typing for govee_ble (#128044) 2024-10-09 19:29:42 +02:00
Marc Mueller 2d093e9692
Enable strict typing for switch_as_x (#127998) 2024-10-09 16:00:45 +02:00
Marc Mueller 412acf943d
Enable strict typing for panel_custom (#127855) 2024-10-08 08:16:58 +02:00
Marc Mueller 00ee2b4478
Enable strict typing for openai_conversation (#127854) 2024-10-08 08:06:05 +02:00
Marc Mueller c3bf1dde7e
Enable strict typing for shell_command (#127856) 2024-10-08 02:05:41 +03:00
Marc Mueller d185f230b9
Enable strict typing for workday (#127797) 2024-10-07 12:48:12 +02:00
Marc Mueller 079ba2a529
Add strict typing to radio_browser (#127799) 2024-10-07 12:47:08 +02:00
Marc Mueller 4cd6813d16
Update mypy-dev to 1.12.0a5 (#127181)
* Update mypy-dev to 1.12.0a5

* Fix enable_incomplete_feature

* Fix vlc_telnet

* Fix deconz
2024-10-02 12:00:59 +02:00
TimL 9eb3d84715
Add Smlight integration to strict-typing (#125946)
Add smlight to strict typing
2024-09-14 11:54:00 +02:00
Joost Lekkerkerker 688da5389c
Mark UVC as strict typed (#123239) 2024-09-10 22:02:46 +02:00
G Johansson 1ffd797e0a
Clean up Mold indicator (#123080)
* Improve code quality on mold_indicator

* mypy

* Fix mypy
2024-09-08 13:11:57 +02:00