Commit Graph

786 Commits (dev)

Author SHA1 Message Date
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
Michael Hansen 60b0f0dc53
Add assist satellite entity component (#125351)
* Add assist_satellite

* Update homeassistant/components/assist_satellite/manifest.json

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

* Update homeassistant/components/assist_satellite/manifest.json

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

* Add platform constant

* Update Dockerfile

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Address comments

* Update docstring async_internal_announce

* Update CODEOWNERS

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-09-05 21:16:30 -04:00
Mark Ruys 9e312f2063
Add Sensoterra integration (#119642)
* Initial version

* Baseline release

* Refactor based on first PR feedback

* Refactoring based on second PR feedback

* Initial version

* Baseline release

* Refactor based on first PR feedback

* Refactoring based on second PR feedback

* Refactoring based on PR feedback

* Refactoring based on PR feedback

* Remove extra attribute soil type

Soil type isn't really a sensor, but more like a configuration entity.
Move soil type to a different PR to keep this PR simpler.

* Refactor SensoterraSensor to a named tuple

* Implement feedback on PR

* Remove .coveragerc

* Add async_set_unique_id to config flow

* Small fix based on feedback

* Add test form unique_id

* Fix

* Fix

---------

Co-authored-by: Joostlek <joostlek@outlook.com>
2024-09-05 21:37:44 +02:00
Artur Pragacz bad305dcbf
Add Onkyo to strict typing (#124617) 2024-09-04 19:11:34 +02:00
Raj Laud 8f26cff65a
Enable strict typing for the Squeezebox integration (#125161)
* Strict typing for squeezebox

* Improve unit tests

* Refactor tests to use websockets and services.async_call

* Apply suggestions from code review

* Fix merge conflict
2024-09-03 19:19:30 +02:00
tronikos f4a16c8dc9
Add strict typing in Google Cloud (#125068) 2024-09-02 04:07:12 -07:00
dontinelli 1661304f10
Bump solarlog_cli to 0.2.2 (#124948)
* Add inverter-devices

* Minor code adjustments

* Update manifest.json

Seperate dependency upgrade to seperate PR

* Update requirements_all.txt

Seperate dependency upgrade to seperate PR

* Update requirements_test_all.txt

Seperate dependency upgrade to seperate PR

* Update homeassistant/components/solarlog/sensor.py

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

* Split up base class, document SolarLogSensorEntityDescription

* Split up sensor types

* Update snapshot

* Bump solarlog_cli to 0.2.1

* Add strict typing

* Bump fyta_cli to 0.6.3 (#124574)

* Ensure write access to hassrelease data folder (#124573)

Co-authored-by: Robert Resch <robert@resch.dev>

* Update a roborock blocking call to be fully async (#124266)

Remove a blocking call in roborock

* Add inverter-devices

* Split up sensor types

* Update snapshot

* Bump solarlog_cli to 0.2.1

* Backport/rebase

* Tidy up

* Simplyfication coordinator.py

* Minor adjustments

* Ruff

* Bump solarlog_cli to 0.2.2

* Update homeassistant/components/solarlog/sensor.py

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

* Update homeassistant/components/solarlog/config_flow.py

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

* Update homeassistant/components/solarlog/sensor.py

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

* Update persentage-values in fixture

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Allen Porter <allen@thebends.org>
2024-09-01 12:47:52 +02:00
Louis Christ 7868ffac35
Enable strict typing checking for bluesound integration (#123821)
* Enable strict typing

* Fix types

* Update to pyblu 0.5.2 for typing support

* Update pyblu to 1.0.0

* Update pyblu to 1.0.1

* Update error handling

* Fix tests

* Remove return None from methods only returning None
2024-08-30 20:21:27 +02:00