J. Nick Koston
4b19c28ad9
Use faster contains check in media_player ( #106434 )
2023-12-26 13:18:22 -10:00
Brett Adams
9dde42a023
Handle Auto Fan and MyFan in Advantage Air ( #95594 )
...
* Decouple climate from MyFan
* Add tests
* Prepare for auto change
* Handle both modes
* Fix import
* Remove reference to FAN map
* Correct auto fan logic
* Remove multiline ternary operator
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Fix coverage
* fix tests
* ruff
* Test auto fan mode with snapshot
* add more testing
* Add switch testing
* Fix a bug caught by new tests
* Remove ineffective snapshot tests
* Readd snapshots but use args
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-12-26 23:31:25 +01:00
Keilin Bickar
615cd56f03
Add Support for SleepIQ Foot Warmers ( #105931 )
...
* Add foot warmer support
* Add Tests for foot warmers
* Move attr options out of constructor
* Change options to lowercase
* Update test and translations
* Switch back to entity
* Update homeassistant/components/sleepiq/strings.json
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-12-26 23:31:00 +01:00
Brett Adams
b51a242fd4
Add install to Tessie update platform ( #106352 )
2023-12-26 11:56:23 -10:00
Joost Lekkerkerker
01ded7daea
Add config flow to Streamlabs water ( #104962 )
...
* Add config flow to Streamlabs water
* Add config flow to Streamlabs water
* Add config flow to Streamlabs water
* Add issue when import is successful
* Remove import issue when entry already exists
* Remove import issue when entry already exists
* Fix feedback
* Fix feedback
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-12-26 22:24:28 +01:00
G Johansson
4f0ee20ec5
Add config flow to System Monitor ( #104906 )
...
* Initial commit for config flow to System Monitor
* sensors
* Fixes
* Works
* Add import
* entity_registry_enabled_default = False
* entity_category = diagnostic
* Create issue
* issue in config flow
* Tests
* test requirement
* codeowner
* Fix names
* processes
* Fix type
* reviews
* get info during startup once
* Select process
* Legacy import of resources
* requirements
* Allow custom
* Fix tests
* strings
* strings
* Always enable process sensors
* Fix docstrings
* skip remove sensors if no sensors
* Modify sensors
* Fix tests
2023-12-26 18:29:32 +01:00
Simone Chemelli
2cd6c2b6bf
Add alarm platform to Comelit ( #104718 )
...
* initial work on alarm
* final work on alarm
* coveragerc
* add tests
* add code validation
* remove sensor changes for a dedicated PR
* code optimization and cleanup
* tweaks
* tweak #2
* apply suggestion
* code quality
* code quality #2
* fix cover.py
* api typing
* use base classes where possibile
* apply const as per review comment
* cleanup unload entry
* apply review comments
2023-12-26 18:27:33 +01:00
mkmer
e9f28c2060
Redact unique id from diagnostics in blink ( #106413 )
...
redact unique id
2023-12-26 16:16:54 +01:00
Tobias Perschon
c8f9285aba
Switch unifi_direct to external library ( #105046 )
...
* switch to external library
Signed-off-by: Tobias Perschon <tobias@perschon.at>
* use mac as name if no hostname is available
Signed-off-by: Tobias Perschon <tobias@perschon.at>
* update requirements_test_all
Signed-off-by: Tobias Perschon <tobias@perschon.at>
* update .coveragerc
Signed-off-by: Tobias Perschon <tobias@perschon.at>
* update codeowners and remove old tests
Signed-off-by: Tobias Perschon <tobias@perschon.at>
* reverted get_device_name to old behaviour
Signed-off-by: Tobias Perschon <tobias@perschon.at>
* typing and some cleanup
Signed-off-by: Tobias Perschon <tobias@perschon.at>
* typing fix
Signed-off-by: Tobias Perschon <tobias@perschon.at>
* code cleanup
Signed-off-by: Tobias Perschon <tobias@perschon.at>
---------
Signed-off-by: Tobias Perschon <tobias@perschon.at>
2023-12-26 13:22:53 +01:00
Maciej Bieniek
3eef1a3f6a
Add valve platform for Shelly Gas Valve ( #106087 )
...
* Add valve platform
* Update BLOCK_PLATFORMS
* Add tests
* Use _attr_is_closed
* Fix mypy errors
* Make the valve switch to disabled by default
* Add deprecation issues
* Remove LOGGER
* Clean
* Add deprecation comments
* Suggested changes
* Set True for is_fixable
* Show valve entity and services in repair issue
2023-12-26 07:56:21 +01:00
Robert Hillis
6f9bff7602
Add config flow to Netgear LTE ( #93002 )
...
* Add config flow to Netgear LTE
* uno mas
* uno mas
* forgot one
* uno mas
* uno mas
* apply suggestions
* tweak user step
* fix load/unload/dep
* clean up
* fix tests
* test yaml before importing
* uno mas
* uno mas
* uno mas
* uno mas
* uno mas
* fix startup hanging
* break out yaml import
* fix doc string
---------
Co-authored-by: Robert Resch <robert@resch.dev>
2023-12-26 05:19:28 +01:00
J. Nick Koston
eb3fde7261
Avoid clearing the attr cache in setter when nothing has changed ( #106384 )
2023-12-25 09:13:48 -10:00
Jan Bouwhuis
3016dbc2bd
Enable toggle on valve/cover start in google_assistant ( #106378 )
2023-12-25 15:40:17 +01:00
G Johansson
123b2669f3
Add full coverage to Fast.com ( #105596 )
...
* Add full test coverage for Fast.com
* Remove not needed
* Add service deprecated test
* Rename speedtest
* Extend delay test
2023-12-25 12:04:07 +01:00
Brett Adams
4c11cb78c8
Add delay to manual refresh in Advantage Air ( #104918 )
...
* Add debouncer
* Avoid having 3 calls
* Debounce causes extra refresh in reload window
* Seperate disabled test to avoid latent refresh
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-12-25 12:01:59 +01:00
Patrick Frazer
771409579a
Add select platform to drop_connect integration ( #106309 )
...
* Add select platform to drop_connect integration
* Fix select test
* Fix minor issues
* Make function definition more specific
* Revert change to switch.py for inclusion in separate PR
* Improve typing
* Add translation keys for select options
* Fix set function typing
* Remove redundant value check
* Remove args that match defaults
2023-12-24 15:03:10 +01:00
Joost Lekkerkerker
c7cb508896
Add diagnostics to ccm15 ( #106329 )
...
* Add diagnostics to ccm15
* Update homeassistant/components/ccm15/diagnostics.py
Co-authored-by: J. Nick Koston <nick@koston.org>
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-24 02:34:36 +01:00
J. Nick Koston
f097e2a2f6
Add support for attribute caching to the media_player platform ( #106257 )
2023-12-23 13:33:11 -10:00
J. Nick Koston
6e6d7a0c92
Add support for attribute caching to the event platform ( #106330 )
2023-12-23 13:23:32 -10:00
J. Nick Koston
e43f4412fa
Fix native_step in number not looking at _attr_native_step ( #106327 )
2023-12-23 13:20:24 -10:00
J. Nick Koston
abd3c54cbe
Add support for attribute caching to the camera platform ( #106256 )
2023-12-23 13:01:47 -10:00
Kevin Worrel
4c912fcf1b
Update test data for screenlogic ( #106325 )
2023-12-23 11:57:27 -10:00
Oscar Calvo
b2caf15434
New integration Midea ccm15 climate ( #94824 )
...
* Initial commit
* Correct settings for config flow
* Use scan interval
* Store proper data
* Remove circular dependency
* Remove circular dependency
* Integration can be initialized
* Fix defaults
* Add setup entry
* Add setup entry
* Dont block forever
* Poll during async_setup_entry
* Remove not needed async methods
* Add debug info
* Parse binary data
* Parse binary data
* Use data to update device
* Use data to update device
* Add CCM15DeviceState
* Use DataCoordinator
* Use DataCoordinator
* Use DataCoordinator
* Use CoordinatorEntity
* Use CoordinatorEntity
* Call update API
* Call update API
* Call update API
* Call update API
* Use dataclass
* Use dataclass
* Use dataclass
* Use dataclass
* Use dataclass
* Use dataclass
* Use dataclass
* Use dataclass
* Fix bugs
* Implement swing
* Support swing mode, read only
* Add unit test
* Swing should work
* Set swing mode
* Add DeviceInfo
* Add error code
* Add error code
* Add error code
* Add error code
* Initial commit
* Refactor
* Remove comment code
* Try remove circular ref
* Try remove circular ref
* Remove circular ref
* Fix bug
* Fix tests
* Fix tests
* Increase test coverage
* Increase test coverage
* Increase test coverrage
* Add more unit tests
* Increase coverage
* Update coordinator.py
* Fix ruff
* Set unit of temperature
* Add bounds check
* Fix unit tests
* Add test coverage
* Use Py-ccm15
* Update tests
* Upgrade dependency
* Apply PR feedback
* Upgrade dependency
* Upgrade dependency
* Upgrade dependency
* Force ruff
* Delete not needed consts
* Fix mypy
* Update homeassistant/components/ccm15/coordinator.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Apply PR Feedback
* Apply PR Feedback
* Apply PR Feedback
* Apply PR Feedback
* Apply PR Feedback
* Apply PR Feedback
* Fix unit tests
* Move climate instance
* Revert "Move climate instance"
This reverts commit cc5b9916b7
.
* Apply PR feedback
* Apply PR Feedback
* Remove scan internal parameter
* Update homeassistant/components/ccm15/coordinator.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Remove empty keys
* Fix tests
* Use attr fields
* Try refactor
* Check for multiple hosts
* Check for duplicates
* Fix tests
* Use PRECISION_WHOLE
* Use str(ac_index)
* Move {self._ac_host}.{self._ac_index} to construtor
* Make it fancy
* Update homeassistant/components/ccm15/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Move const to class variables
* Use actual config host
* Move device info to construtor
* Update homeassistant/components/ccm15/climate.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Set name to none, dont ask for poll
* Undo name change
* Dont use coordinator in config flow
* Dont use coordinator in config flow
* Check already configured
* Apply PR comments
* Move above
* Use device info name
* Update tests/components/ccm15/test_coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update tests/components/ccm15/test_config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Apply feedback
* Remove logger debug calls
* Add new test to check for dupplicates
* Test error
* Use better name for test
* Update homeassistant/components/ccm15/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/ccm15/climate.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/ccm15/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Use prop data for all getters
* Fix tests
* Improve tests
* Improve tests, v2
* Replace log message by comment
* No need to do bounds check
* Update config_flow.py
* Update test_config_flow.py
* Update test_coordinator.py
* Update test_coordinator.py
* Create test_climate.py
* Delete tests/components/ccm15/test_coordinator.py
* Update coordinator.py
* Update __init__.py
* Create test_climate.ambr
* Update conftest.py
* Update test_climate.py
* Create test_init.py
* Update .coveragerc
* Update __init__.py
* We need to check bounds after all
* Add more test coverage
* Test is not None
* Use better naming
* fix tests
* Add available property
* Update homeassistant/components/ccm15/climate.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Use snapshots to simulate netwrok failure or power failure
* Remove not needed test
* Use walrus
---------
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-12-23 21:24:52 +01:00
Robert Resch
ebdf7b9c8c
Deprecate some deprecated const constants ( #106230 )
...
* Deprecate some deprecated const constants
* Improve code
* fix typing
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-12-23 20:18:51 +01:00
Brandon Rothweiler
c629b434cd
Add energy usage sensor to A. O. Smith integration ( #105616 )
...
* Add energy usage sensor to A. O. Smith integration
* Address review comments
* Address review comment
* Address review comment
* Create device outside of the entity class
* Address review comment
* remove platinum
2023-12-23 17:24:49 +01:00
Matt
345f7f2003
Fix feedreader date comparison to allow RSS entries with identical timestamps ( #104925 )
...
Change feedreader publishdate comparison
2023-12-23 16:48:36 +01:00
Jan Bouwhuis
e311a6835e
Add valve platform support to google_assistant ( #106139 )
...
* Add valve platform to google_assistant
* Use constant for domains set
2023-12-23 16:46:25 +01:00
Patrick Frazer
c126022d4f
Add switches to drop_connect integration ( #106264 )
...
* Add switches to drop_connect integration
* Let device update state
* Simplify icon property
* Use constants for icon names
* Add simulated responses from devices
* Use keyed form for switch value
* Clean up properties
2023-12-23 16:39:31 +01:00
Marco
d450a7f57e
Improve mikrotik error handling ( #106244 )
...
* improve mikrotik error handling
* switch to debug
* fix mock command arguments
* add recommendations
---------
Co-authored-by: Marco98 <Marco98@users.noreply.github.com>
2023-12-23 16:26:27 +01:00
Jan Bouwhuis
6da2f98d34
Fix mqtt valve is not resetting opening or closing state ( #106240 )
...
* Fix mqtt valve is not resetting opening or closing state
* Require state or position attr in JSON state update
* Do not change `_attr_is_closed` if valve reports a position
* Add comment, use tuple
* Call _update_state
2023-12-23 15:18:44 +01:00
Brett Adams
043f3e640c
Rework entity description functions in Tessie ( #106287 )
...
* use lamdba to return the library function
* Rename mocks
* lambda number
* Lambda button
* Add missing
* Remove context manager
2023-12-23 13:45:06 +01:00
doggkruse
ea7c839423
Apply units of measure provided in API when available in LaCrosse View ( #106299 )
...
* Apply units of measure provided in API when available to avoid mismatch of native units. Improved fix for #106148
* Fix ruff error
2023-12-23 13:41:15 +01:00
Michael
da684d6a7b
Add diagnostics support to Tankerkoenig ( #106301 )
2023-12-23 12:20:15 +01:00
Robert Resch
060172fc24
Deprecate deprecated data entry flow constants ( #106229 )
2023-12-23 11:25:39 +01:00
Michael
859e7972ac
Add significant Change support for vacuum ( #106002 )
2023-12-23 11:24:32 +01:00
Michael
321dc3984c
Add significant Change support for humidifier ( #106015 )
2023-12-23 10:56:51 +01:00
Robert Resch
20ba764d92
Deprecate deprecated camera constants ( #106095 )
2023-12-23 10:46:23 +01:00
Franck Nijhof
3404bd4de5
Fix flaky Tailwind tests by fixing via_device ( #106294 )
2023-12-23 10:45:20 +01:00
Martin Hjelmare
1d0cee5e8a
Improve cloud system health tests ( #106235 )
2023-12-23 10:35:16 +01:00
J. Nick Koston
5156a93b9e
Add support for attribute caching to the update platform ( #106261 )
2023-12-23 10:29:55 +01:00
jjlawren
0ae4d017b9
Add subwoofer crossover support to Sonos Amp devices ( #106290 )
2023-12-23 10:25:20 +01:00
Erik Montnemery
3a744d374b
Add support for caching entity properties ( #100601 )
2023-12-22 09:02:55 -10:00
Martin Hjelmare
087eb86e37
Improve cloud binary sensor tests ( #106238 )
...
* Clean up cloud binary sensor test
* Test remove entity
2023-12-22 19:48:07 +01:00
Patrick Frazer
c41173bb29
Add binary sensors to drop_connect integration ( #106248 )
2023-12-22 19:26:52 +01:00
Allen Porter
656d0696bb
Add support for re-ordering Google Tasks ( #104769 )
...
* Add reorder and task ordering
* Remove un-needed js id code
* Revert dead code deletion
* Remove reverted test and dead logger
* Update comment name
2023-12-22 18:49:41 +01:00
G Johansson
d1d5c50b73
Add full test coverage to Trafikverket Train ( #106247 )
...
* Add full test coverage for Trafikverket Train
* Coordinator full coverage
* Now full coverage
* Add util
2023-12-22 16:53:51 +01:00
Floris272
8b0d19aca2
Add bluecurrent integration ( #82483 )
...
* Add bluecurrent integration
* Apply feedback
* Rename integration
* changed constants and removed strings.sensor.json
* update blue_current integration
* update bluecurrent-api to 1.0.4
* Update bluecurrent-api to 1.0.5
* Apply feedback
* Remove translation
* Apply feedback
* Use customer_id as unique id
* Apply feedback
* Add @pytest.mark.parametrize
* Replace loop.create_task with async_create_task
2023-12-22 16:34:16 +01:00
Rami Mosleh
c91ac22d3c
Add location selector to Islamic prayer times ( #105911 )
...
* Add location selector to config flow
* Simplify entry data
* fix abort string
* Add migration with minor version
* Follow documented migration method
2023-12-22 15:24:50 +01:00
G Johansson
126a58a33e
Return multiple trains in Trafikverket Train ( #106206 )
...
* Add list of trains to coordinator
* Fix to work
* snapshot
* Fixes
* Fix
2023-12-22 15:18:16 +01:00
Jan-Philipp Benecke
13504d5fd5
Add consider home interval to ping ( #104881 )
...
* Add consider home interval to ping
* Run ruff after rebase
* Fix buggy consider home interval
2023-12-22 14:50:58 +01:00