* 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
* 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>
* 🍱 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
* 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>
* * 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
* 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>
* 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>
* 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>
* 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>
* 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