Commit Graph

305 Commits (9e04f618b81e4ff73053eb72e9439992dbff1c9f)

Author SHA1 Message Date
epenet 3472e0e370
Standardize homeassistant imports in component (a-b) (#136821) 2025-01-29 11:37:48 +01:00
Marc Mueller 46b17b539c
Use new syntax for TypeVar defaults (#135780) 2025-01-17 09:12:52 +01:00
epenet bc8a2b58d3
Use new ServiceInfo location in components (part 1) (#135682) 2025-01-15 15:43:46 +01:00
Franck Nijhof 60bdc13c94
Drop Python 3.12 support (#135589) 2025-01-14 16:23:15 +01:00
Norbert Rittel fba1b4be5b
Replace "click" with "select" to fit for mobile app (#135382) 2025-01-13 12:32:07 +01:00
G Johansson 768c2b0f3d
Remove _enable_turn_on_off_backwards_compatibility A-F (#132417)
Remove _enable_turn_on_off_backwards_compatibility A-G
2024-12-05 21:46:59 +01:00
epenet 72504d7619
Use async_start_reauth helper in broadlink (#129308) 2024-10-28 09:00:11 +01:00
epenet af7a9ff591
Add missing translation string in broadlink (#127829) 2024-10-08 08:10:25 +02:00
Jan-Philipp Benecke d28c32624c
Use debug/warning instead of info log level in components [b] (#125954) 2024-09-14 15:52:23 +02:00
epenet 681fe3485d
Improve config flow type hints (a-f) (#124859) 2024-08-29 17:24:04 +02:00
epenet 318259689f
Standardize import step variable name (part 4) (#124692)
* Standardize import step variable name (part 4)

* One more

* Revert geonetnz_volcano

* Revert SMS due to coverage

* Revert somfy_mylink due to coverage
2024-08-27 16:18:11 +02:00
epenet ebc49d938a
Improve config flow type hints (part 2) (#124344) 2024-08-25 18:36:44 +02:00
fustom 77282ed4b0
Use external temp if needed in Broadlink (#118375)
* Use external temp for current temp depends on the sensor state

* Add SensorMode enum

* Add tests for Broadlink climate

* Check is the sensor included in the data

* Use IntEnum as parent of SensorMode

* Use SensorMode enum value for sensor test data

* Parametrizing tests

* Readd accidentally removed assert

* Use local sensor variable

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

* Refactor test_climate. Check call_counts.

* Add parameter types

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

* Update homeassistant/components/broadlink/climate.py

---------

Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-07-23 12:30:06 +02:00
Kevin Stillhammer ab945ee76e
Add Broadlink select platform (#121797)
* Add broadlink select platform

* Apply strings.json feedback

* Remove obsolete Service Exception

* Use day names instead of IDs

* Use list()
2024-07-14 23:59:24 +02:00
Kevin Stillhammer ea5eb0f8f2
Add Broadlink time platform (#121470)
* Add time platform

* Apply PR feedback

* Remove obsolete Exception raise
2024-07-11 08:18:10 +02:00
epenet ff59adc661
Adjust type hints for unnecessary returns (#121650) 2024-07-10 09:26:29 +02:00
Kevin Stillhammer 8ab6a505a4
Write data to state after Broadlink entity added (#121493)
* Write data to ha after entity added

* Properly mock api return values

Some values like _attr_is_on were mapped to MagicMocks which led to them evaluating to True. Actually calling the update state method when adding the entities made that improper mocking come to the surface.

* Call _update_state instead of _recv_data
2024-07-08 13:15:17 +02:00
epenet d0c10c961d
Improve type hints in broadlink (#121285) 2024-07-05 11:12:01 +02:00
Marc Mueller 3559755aed
Add import aliases for PLATFORM_SCHEMA (#120445) 2024-06-25 19:16:19 +02:00
Sid ac54cdcdb4
Enable Ruff RUF010 (#115371)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-05-08 23:54:49 +02:00
Felipe Martins Diel 453ce0fc4e
Fix BroadlinkRemote._learn_command() (#116692) 2024-05-03 13:11:22 +02:00
Felipe Martins Diel 7188d62340
Bump Broadlink to 0.19.0 (#115742)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-04-17 14:37:38 -05:00
Marc Mueller 2c06d4fcb9
Add empty line after module docstring (2) [components] (#112736) 2024-03-08 19:15:59 +01:00
Marc Mueller ff3a801936
Add empty line after module docstring [a-d] (#112697) 2024-03-08 14:51:32 +01:00
Erik Montnemery 6fe28d3764
Migrate integrations a-d to generic flowhandler (#111861) 2024-02-29 20:07:14 +01:00
Kevin Stillhammer 03e8482aa9
Fix BroadlinkThermostat inheritance order (#110927)
fix BroadlinkThermostat inheritance order
2024-02-19 10:44:45 +01:00
G Johansson d4c0a9a847
Adds new climate feature flags to broadlink (#109479) 2024-02-03 07:04:11 +01:00
c0ffeeca7 56350d1c0a
Broadlink, BSB-Lan: add host field description (#104770) 2023-11-30 08:47:37 +01:00
Kevin Stillhammer 4465c74d23
Add broadlink climate (#91183) 2023-11-14 16:05:08 +01:00
Erik Montnemery e18e12a2df
Fix color temperature setting in broadlink light (#101251) 2023-10-02 14:12:06 +02:00
Erik Montnemery 136fbaa2a8
Remove dead code from broadlink light (#101063) 2023-09-28 22:38:21 +02:00
Joost Lekkerkerker b67e290eaa
Use explicit device name in Broadlink (#98229) 2023-08-11 12:15:04 +02:00
Erik Montnemery 045c327928
Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
Erik Montnemery 7539cf25be
Don't require passing identifiers to DeviceRegistry.async_get_device (#96479)
* Require keyword arguments to DeviceRegistry.async_get_device

* Update tests

* Update tests

* Don't enforce keyword arguments
2023-07-13 13:39:25 -04:00
Joost Lekkerkerker 7eb26cb9c9
Fix explicit device naming for integrations a-j (#95619)
Fix explicit device naming for a-j
2023-06-30 11:33:50 -04:00
Joost Lekkerkerker 369de1cad3
Add explicit device name to Broadlink (#95516) 2023-06-29 12:03:25 +02:00
Joost Lekkerkerker dffe468ceb
Use device class translations for Broadlink (#95183) 2023-06-25 13:01:22 +02:00
Erik Montnemery c1c319d4d1
Rename `cv.no_yaml_config_schema` to `cv.config_entry_only_config_schema` (#93908)
* Rename cv.no_yaml_config_schema to cv.config_entry_only_config_schema

* ✏️
2023-06-01 13:15:48 +02:00
Erik Montnemery e0db9ab041
Add CONFIG_SCHEMA to broadlink (#93854)
* Add CONFIG_SCHEMA to broadlink

* Simplify error message

* Rename to no_yaml_config_schema

* Add tests

* Raise issue

* Tweak repairs issue description and title

* Update homeassistant/helpers/config_validation.py

* Add link

* Update homeassistant/components/homeassistant/strings.json

Co-authored-by: Franck Nijhof <git@frenck.dev>

* Fix logic, add test

---------

Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-06-01 09:51:26 +02:00
Ville Skyttä ced67e5800
Import `util.dt` as `dt_util` in `components/[a-d]*` (#93756) 2023-05-30 00:02:06 +03:00
henryptung 8a0f3a8c88
Fix Broadlink discovery for new RM Mini3 (again) (#93158) 2023-05-21 14:53:06 +02:00
epenet 397a5ff992
Fix lingering timer in broadlink (#92179) 2023-04-28 21:08:08 +02:00
epenet 33a8eb1716
Add type hints to broadlink device/heartbeat (#91737)
* Add type hints to broadlink device/heartbeat

* Improve

* Force bool

* Revert "Force bool"

This reverts commit 65bce837d0.
2023-04-21 21:36:18 +03:00
Patrick ZAJDA e748f0c623
Add entity name translations to Broadlink sensors (#90783)
* Add entity name translations to Broadlink sensors

Signed-off-by: Patrick ZAJDA <patrick@zajda.fr>

* Update tests

Signed-off-by: Patrick ZAJDA <patrick@zajda.fr>

* Apply suggestions from code review

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

---------

Signed-off-by: Patrick ZAJDA <patrick@zajda.fr>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-04-04 15:18:41 -04:00
Erik Montnemery 87420e949d
Sort manifests 2 (#87023) 2023-02-08 20:16:39 +01:00
epenet 1b23429f41
Add __init__ return type to integrations (#87637) 2023-02-07 15:55:14 +01:00
Franck Nijhof 939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
epenet bb3e0633a4
Add init return type to integrations (#87523)
Add type hints to integrations
2023-02-06 11:37:25 +01:00
GitHub Action 71d7098530 [ci skip] Translation update 2023-01-27 00:25:12 +00:00
epenet 25c451832b
Remove `pragma: no cover` when not raising (#86706) 2023-01-26 16:34:05 +01:00