Commit Graph

52610 Commits (60370228f612b846ba41c8389e5922916a2933cd)

Author SHA1 Message Date
Joakim Plate 60370228f6
Update nibe heatpump dependency to 2.5.1 (#104429) 2023-11-24 10:09:57 +01:00
Luke Lashley 6a2fd434fc
Bump Python Roborock to 0.36.2 (#104441) 2023-11-24 10:07:16 +01:00
Damian Sypniewski 258a93bf19
Bump yeelight to 0.7.14 (#104439) 2023-11-24 08:39:56 +01:00
J. Nick Koston b24fa4839d
Bump aioesphomeapi to 18.5.7 (#104426) 2023-11-23 22:59:51 +01:00
Robert Svensson d78c0bd948
Handle 403 errors in UniFi (#104387)
UniFi handle 403 error
2023-11-23 20:25:26 +01:00
Ville Skyttä 616f6aab76
Add Huawei LTE restart and clear traffic statistics buttons (#91967)
* Add Huawei LTE restart and clear traffic statistics buttons

Deprecate corresponding services in favour of these.

* Change to be removed service warnings to issues

* Add tests

* Update planned service remove versions
2023-11-23 19:35:35 +01:00
aptalca a1f7f899c9
Make SMTP notify send images as attachments if html is disabled (#93562)
smtp notify: send images without html as attachments

update smtp test to detect content_type for plain txt + image
2023-11-23 13:51:51 +01:00
starkillerOG 6b138a276a
Add diagnostics platform to Reolink (#104378) 2023-11-23 12:55:21 +01:00
Raman Gupta e9920ff73d
Add select entity for zwave_js Door Lock CC (#104292)
* Add select entity for zwave_js Door Lock CC

* fix test
2023-11-23 12:51:29 +01:00
Michał Huryn 933cd89833
Blebox update IP address if already configured via zeroconf (#90511)
feat: zeroconf, update ip address if device allready configured
2023-11-23 11:15:24 +01:00
Mike Heath d460eadce0
Add support to fully_kiosk for hybrid local push/pull switches using MQTT (#89010)
* Support hybrid local push/pull switches using MQTT

* Update homeassistant/components/fully_kiosk/entity.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Fix MQTT subscribe method

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-11-23 10:38:32 +01:00
Klaas Schoute 1144e33e68
Add re-auth config flow strings for Sure Petcare (#104357) 2023-11-23 10:23:15 +01:00
Joakim Sørensen 2febc9c4b3
Force IPv4 when getting location information (#104363) 2023-11-23 09:13:00 +01:00
Klaas Schoute ada0578f3a
Update gridnet lib to v5.0.0 (#104396) 2023-11-23 09:03:20 +01:00
nachonam a91fad47bc
Bump pysuez to 0.2.0 (#104338) 2023-11-23 08:57:15 +01:00
Eugenio Panadero 32aa1aaec2
Add pvpc hourly pricing optional API Token support (#85767)
* 🍱 Add new fixture for PVPC data from authenticated API call

and update mocked server responses when data is not available
(now returns a 200 OK with empty data)

*  Implement optional API token in config-flow + options

to make the data download from an authenticated path in ESIOS server

As this is an *alternative* access, and current public path works for the PVPC,
no user (current or new) is compelled to obtain a token,
and it can be enabled anytime in options, or doing the setup again

When enabling the token, it is verified (or "invalid_auth" error),
and a 'reauth' flow is implemented, which can change or disable the token if
it starts failing.

The 1st step of config/options flow adds a bool to enable this private access,
- if unchecked (default), entry is set for public access (like before)
- if checked, a 2nd step opens to input the token, with instructions
  of how to get one (with a direct link to create a 'request email').
  If the token is valid, the entry is set for authenticated access

The 'reauth' flow shows the boolean flag so the user could disable a bad token
by unchecking the boolean flag 'use_api_token'

* 🌐 Update strings for config/options flows

*  Adapt tests to check API token option and add test_reauth

* 🎨 Link new strings to those in config-flow

* 🐛 tests: Fix mocked date-change with async_fire_time_changed

* ♻️ Remove storage of flag 'use_api_token' in config entry

leaving it only to enable/disable the optional token in the config-flow

* ♻️ Adjust async_update_options
2023-11-23 08:35:30 +01:00
deosrc 5623834b37
Add Netatmo temperature services (#104124)
* Update datetime strings to match input_datetime integration

* Add netatmo service to set temperature

* Add netatmo service to clear temperature setting

* Fix formatting

* Add tests for new services

* Fix mypy error

* Fix formatting

* Fix formatting

* Apply suggestions from code review (WIP)

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Complete changes from review suggestions

* Fix build error

* Add service to set temperature for time period

* Expand and fix test

* Replace duplicated strings with links

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-11-23 08:10:10 +01:00
Klaas Schoute eaba2c7dc1
Update p1monitor lib to v3.0.0 (#104395) 2023-11-23 07:53:50 +01:00
Christopher Fenner 556e72abf8
Add number entities to adjust heating curve in ViCare integration (#103901)
* add number entity

* use static constraints

* use async execute job

* add number platform

* Update .coveragerc

* remove unused code parts

* add types

* add missing return type

* Apply suggestions from code review

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

* Apply suggestions from code review

Co-authored-by: Jan-Philipp Benecke <github@bnck.me>

* fix docstrings

* fix variable names

* add unit of measurement

* remove obsolete unique id handling

* remove hass from constructor

* inline _entities_from_descriptions function

* fix return type

* rename variable

* Apply suggestions from code review

Co-authored-by: Jan-Philipp Benecke <github@bnck.me>

* Apply suggestions from code review

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Jan-Philipp Benecke <github@bnck.me>
2023-11-23 07:29:28 +01:00
J. Nick Koston a59076d140
Speed up ESPHome connection setup (#104304) 2023-11-22 23:27:17 +01:00
starkillerOG a3c0f36592
Add Reolink serial number (#104383)
* Add Reolink serial number

* fix tests
2023-11-22 22:54:48 +01:00
Øyvind Matheson Wergeland 3e641b3ef2
Add Nobø Hub week profiles and global override (#80866)
* * Nobø Ecohub select entities
  - Week profiles
  - Global overrides

* Set integration_type

* Typing

* Remove translations

* Translation fixes
- Moved strings.select.json into strings.json
- Added translation keys for select entities
- Use shared translation keys for global override states

* Use DeviceInfo object

* Revert temperature name - uses device class name

* Fix updated checks

* Improve error handling (preparing for Silver level)

* Review
2023-11-22 21:38:13 +01:00
starkillerOG 968563253f
Bump reolink-aio to 0.8.1 (#104382) 2023-11-22 20:49:21 +01:00
Aarni Koskela ae4552eb3e
Improve Unifi switch entity unique ID naming function (#104370) 2023-11-22 20:02:16 +01:00
Jakub Čermák 41626ed500
Support for more features on smartthings AC (#99424)
* ability to set swing mode on samsung AC

* support for windFree mode on samsung AC

* Apply suggestions from code review

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* suggestion from code reviews

* Apply suggestions from code review

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-11-22 20:00:28 +01:00
Dave T 7a727dc3ad
Migrate Aurora_ABB_Powerone to DataUpdateCoordinator (#72363)
* Refactor to DataUpdateCoordinator

* Fix tests for sunset/sunrise

* Correct time offsets in tests

* Fix time intervals (attempt 2)

* Merge dev

* Fix tests after rebase

* Fix isort

* Address review comments: const and increase cov

* Fix merge problems

* Refactor, removing unnecessary file

* Perform blocking serial IO in the executor

* Replace deprecated  async_setup_platforms

* Update based on review comments

* Fix tests

* Update based on review comments.

* Update homeassistant/components/aurora_abb_powerone/sensor.py

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

* Use freezer for time deltas.

* Address review comments

---------

Co-authored-by: Dave T <davet2001@users.noreply.github.com>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-11-22 19:04:49 +01:00
Joost Lekkerkerker 9278db7344
Rename variable in Overkiz config flow (#104377) 2023-11-22 18:31:18 +01:00
Joost Lekkerkerker b5f8b35549
Remove Overkiz config flow constructor (#104375) 2023-11-22 17:54:10 +01:00
Luke Lashley 5f41d6bbfb
Add better error handling for Roborock initialization (#104181)
* Introduce better handling of errors in init for Roborock

* patch internally

* push exceptions up

* remove duplicated test
2023-11-22 08:34:20 -08:00
Mick Vleeshouwer 75f237b587
Add local API support to Overkiz integration (Somfy TaHoma Developer Mode) (#71644)
* Add initial config flow implementation

* Add initial config flow implementation

* Add todos

* Bugfixes

* Add first zeroconf code

* Fixes for new firmware

* Bugfixes for local integration

* Delete local token

* Fix diagnostics

* Update translations and improve code

* Update translations and improve code

* Add local integration updates

* Add local integration updates

* Small tweaks

* Add comments

* Bugfix

* Small code improvements

* Small code improvements

* Small code improvements

* Small code improvements

* Small code improvements

* Small code improvements

* Bugfixes

* Small code improvements

* Small code improvements

* Change Config Flow (breaking change)

* Remove token when integration is unloaded

* Remove print

* Simplify

* Bugfixes

* Improve configflow

* Clean up unnecessary things

* Catch nosuchtoken exception

* Add migration for Config Flow

* Add version 2 migration

* Revert change in Config Flow

* Fix api type

* Update strings

* Improve migrate entry

* Implement changes

* add more comments

* Extend diagnostics

* Ruff fixes

* Clean up code

* Bugfixes

* Set gateway id

* Start writing tests

* Add first local test

* Code coverage to 64%

* Fixes

* Remove local token on remove entry

* Add debug logging + change manifest

* Add developer mode check

* Fix not_such_token issue

* Small text changes

* Bugfix

* Fix tests

* Address feedback

* DRY

* Test coverage to 77%

* Coverage to 78%

* Remove token removal by UUID

* Add better retry methods

* Clean up

* Remove old data

* 87% coverage

* 90% code coverage

* 100% code coverage

* Use patch.multiple

* Improve tests

* Apply pre-commit after rebase

* Fix breaking changes in ZeroconfServiceInfo

* Add verify_ssl

* Fix test import

* Fix tests

* Catch SSL verify failed

* Revert hub to server rename

* Move Config Flow version back to 1

* Add diagnostics tests

* Fix tests

* Fix strings

* Implement feedback

* Add debug logging for local connection errors

* Simplify Config Flow and fix tests

* Simplify Config Flow

* Fix verify_ssl

* Fix rebase mistake

* Address feedback

* Apply suggestions from code review

* Update tests/components/overkiz/test_config_flow.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-11-22 16:53:17 +01:00
Florian 01c49ba0e4
Add recording status for Philips TV (#94691) 2023-11-22 14:24:49 +00:00
Marc Mueller 1f3f073df9
Fix idasen_desk coordinator typing (#104361) 2023-11-22 14:08:22 +01:00
Malene Trab 60dcd24bf9
Remove MTrab from Repetier CodeOwners (#104356)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-22 13:32:36 +01:00
Bouwe Westerdijk 0996c82c02
Plugwise: limit _attr_max_temp to 35.0 for thermostats that report a max of 100. (#104324) 2023-11-22 13:20:33 +01:00
Klaas Schoute 02e09ed4cc
Update odp-amsterdam lib to v6.0.0 (#104339) 2023-11-22 10:24:10 +01:00
Mick Vleeshouwer 254d43dcf7
Support tilt commands for DynamicVenetianBlind in Overkiz (#104330) 2023-11-22 10:23:19 +01:00
Franck Nijhof 4f94649ee2
Update sentry-sdk to 1.36.0 (#104317) 2023-11-22 10:14:46 +01:00
IceBotYT cbb5d7ea39
Add Linear Garage Door integration (#91436)
* Add Linear Garage Door integration

* Add Linear Garage Door integration

* Remove light platform

* Add tests for diagnostics

* Changes suggested by Lash

* Minor refactoring

* Various improvements

* Catch up to dev, various fixes

* Fix DeviceInfo import

* Use the HA dt_util

* Update tests/components/linear_garage_door/test_cover.py

* Apply suggestions from code review

---------

Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-11-22 09:35:31 +01:00
starkillerOG 6c6e85f996
Reolink use parenthesis for multi-line lambda (#104321)
Use parenthesis
2023-11-22 08:50:29 +01:00
J. Nick Koston 59469828f1
Bump aioesphomeapi to 18.5.6 (#104341) 2023-11-22 08:43:52 +01:00
Duco Sebel af15aab35e
Add Picnic shopping cart as Todo list (#102855)
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Allen Porter <allen.porter@gmail.com>
2023-11-22 08:40:19 +01:00
Vaarlion 3929b0163c
Add RGB, RGBW and RGBWW capability to template.light (#86047)
* Add RGB, RGBW and RGBWW capability to template.light

Add the required unit test

Mute 'LightTemplate.async_turn_on' is too complex

Rename all HS color mode from a generic "Color" name to a specific "HS" name

* Bring back legacy "color" keyword

* Cleanup unrequested commented test

* Increase code coverage to 100%

* Remove confusing if that should never be false

* Apply suggestions from code review

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-11-22 08:15:26 +01:00
Robert Svensson edf18df0e6
Add PoE power cycle button to UniFi integration (#104332) 2023-11-22 07:02:49 +01:00
Robert Svensson f1fd8a0d2b
Bump aiounifi to v66 (#104336) 2023-11-22 07:02:13 +01:00
Luke Lashley 464270d849
Add reauthentication to Roborock (#104215)
* add reauth to roborock

* update reauth based on comments

* fix diagnostics?

* Update homeassistant/components/roborock/config_flow.py

Co-authored-by: Allen Porter <allen.porter@gmail.com>

* remove unneeded import

* fix tests coverage

---------

Co-authored-by: Allen Porter <allen.porter@gmail.com>
2023-11-21 15:21:31 -08:00
starkillerOG aea15ee20c
Reolink add media browser for playback of recordings (#103407) 2023-11-21 23:43:56 +01:00
Klaas Schoute 91e0a53cb2
Move to asyncio.timeout for APC integration (#104340)
Move to asyncio.timeout for apcupsd
2023-11-21 23:29:46 +01:00
Yuxin Wang 33c5d1855d
Rewrite APCUPSD sensors using DataUpdateCoordinator (#88467)
* Add test sensor.

* Fix sensor test file name.

* Add binary sensor test.

* Fix comments and styling.

* Remove apcupsd from omissions in coveragerc.

* Revert "Remove apcupsd from omissions in coveragerc."

This reverts commit 66b05fcb8829619a771a650a3d70174089e15d91.

* Implement the data coordinator for apcupsd.

* Add tests for sensor updates and throttles.

* Reorder the statement for better code clarity.

* Update docstring.

* Add more tests for checking if the coordinator works ok.

* Implement a custom debouncer with 5 second cooldown for the coordinator.

* Add more tests for checking if our integration is able to properly mark entity's availability.

* Make apcupsd a silver integration.

* Try to fix non-deterministic test behaviors

* Fix JSON format

* Use new `with` format in python 3.10 for better readability

* Update tests.

* Rebase and simplify code.

* Add an ups prefix to the property methods of the coordinator

* Replace init_integration with async_init_integration

* Lint fixes

* Fix imports

* Update BinarySensor implementation to add initial update of attributes

* Fix test failures due to rebases

* Reorder the statements for better code clarity

* Fix incorrect references to the ups_name property

* Simplify BinarySensor value getter code

* No need to update when adding coordinator-controlled sensors
2023-11-21 22:40:05 +01:00
Luke Lashley f45d373e17
Make non-selected Roborock images diagnostic (#104233)
* Make images diagnostic

* Add return type

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-11-21 20:45:53 +01:00
Marcel van der Veldt b604c1c222
Fix discovery schema for Matter switches (#103762)
* Fix discovery schema for matter switches

* fix typo in function that generates device name

* add test for switchunit
2023-11-21 20:25:07 +01:00