* Turn Ring Doorbell and Chime volumes into number entities.
* turn RingOther volumes into numbers as well
* fix linter issues
* move other volume strings into `number` section
* add back old volume sensors but deprecate them
* add tests for `ring.number`
* add back strings for sensors that have just become deprecated
* remove deprecated volume sensors from test
* Revert "remove deprecated volume sensors from test"
This reverts commit fc95af66e7.
* create entities for deprecated sensors so that tests still run
* remove print
* add entities immediately
* move `RingNumberEntityDescription` above `RingNumber` and remove unused import
* remove irrelevant comment about history
* fix not using `setter_fn`
* add missing icons for other volume entities
* rename `entity` -> `entity_id` in number tests
* fix typing in number test
* use constants for `hass.services.async_call()`
* use `@refresh_after` decorator instead of delaying updates manually
* move descriptors above entity class
* Use snapshot to test states.
* add missing snapshot file for number platform
* Update homeassistant/components/ring/number.py
Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com>
---------
Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com>
* Add platform number.
* Remove number user_limit.
* Change LED to led in number snapshot.
* Update homeassistant/components/lektrico/number.py
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* feat: initial implementation of sensor platform
* refactor(tests): await setup of config_entry in parent function
* feat(tests): add tests for laundrify sensor platform
* refactor: set name property for laundrify binary_sensor
* refactor(tests): add missing type hints
* refactor(tests): remove global change of the logging level
* refactor: address minor changes from code review
* refactor(tests): transform setup_config_entry into fixture
* refactor: leverage entity descriptions to define common entity properties
* refactor: change native unit to Wh
* fix(tests): use fixture to create the config entry
* fix: remove redundant raise of LaundrifyDeviceException
* fix(tests): raise a LaundrifyDeviceException to test the update failure behavior
* refactor(tests): merge several library fixtures into a single one
* refactor(tests): create a separate UpdateCoordinator instead of using the internal
* refactor(tests): avoid using LaundrifyPowerSensor
* refactor: simplify value retrieval by directly accessing the coordinator
* refactor: remove non-raising code from try-block
* refactor(sensor): revert usage of entity descriptions
* refactor(sensor): consolidate common attributes and init func to LaundrifyBaseSensor
* refactor(sensor): instantiate DeviceInfo obj instead of using dict
* refactor(tests): use freezer to trigger coordinator update
* refactor(tests): assert on entity state instead of coordinator
* refactor(tests): make use of freezer
* chore(tests): typo in comment
* Add new integration for WMS WebControl pro using local API
Warema recently released a new local API for their WMS hub
called "WebControl pro". This integration makes use of the
new local API via a new dedicated Python library pywmspro.
For now this integration only supports awnings as covers.
But pywmspro is device-agnostic to ease future extensions.
* Incorporated review feedback from joostlek
Thanks a lot!
* Incorporated more review feedback from joostlek
Thanks a lot!
* Incorporated more review feedback from joostlek
Thanks a lot!
* Fix
* Follow-up fix
* Improve handling of DHCP discovery
* Further test improvements suggested by joostlek, thanks!
---------
Co-authored-by: Joostlek <joostlek@outlook.com>
* Add internet sensor updated by events
* Strings for internet sensor
* Update binary_sensor snapshot with internet sensor
* Add test for internet sensor
* Address review comments
---------
Co-authored-by: Tim Lunn <tim@feathertop.org>
* Add Beolink custom services
Add support for media player grouping via beolink
Give media player entity name
* Fix progress not being set to None as Beolink listener
Revert naming changes
* Update API
simplify Beolink attributes
* Improve beolink custom services
* Fix Beolink expandable source check
Add unexpand return value
Set entity name on initialization
* Handle entity naming as intended
* Fix "null" Beolink self friendly name
* Add regex service input validation
Add all_discovered to beolink_expand service
Improve beolink_expand response
* Add service icons
* Fix merge
Remove unnecessary assignment
* Remove invalid typing
Update response typing for updated API
* Revert to old typed response dict method
Remove mypy ignore line
Fix jid possibly used before assignment
* Re add debugging logging
* Fix coroutine
Fix formatting
* Remove unnecessary update control
* Make tests pass
Fix remote leader media position bug
Improve remote leader BangOlufsenSource comparison
* Fix naming and add callback decorators
* Move regex service check to variable
Suppress KeyError
Update tests
* Re-add hass running check
* Improve comments, naming and type hinting
* Remove old temporary fix
* Convert logged warning to raised exception for invalid media_player
Simplify code using walrus operator
* Fix test for invalid media_player grouping
* Improve method naming
* Improve _beolink_sources explanation
* Improve _beolink_sources explanation
* Add initial media_player grouping
* Convert custom service methods to media_player methods
Fix testing
* Remove beolink JID extra state attribute
* Modify custom services to only work as expected for media_player grouping
Fix tests
* Remove unused dispatch
* Remove wrong comment
* Remove commented out code
* Add config entry mock typing
* Fix beolink listener playback progress
Fix formatting
Add and use get_serial_number_from_jid function
* Fix testing
* Clarify beolink WebSocket notifications
* Further clarify beolink WebSocket notifications
* Convert notification value to enum value
* Improve comments for touch to join
* Fix None being cast to str if leader is not in HA
* Add error messages to devices in Beolink session and not Home Assistant
Rework _get_beolink_jid
* Replace redundant function call
* Show friendly name for unavailable remote leader instead of JID
* Update homeassistant/components/bang_olufsen/media_player.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Remove unneeded typing
* Rework _get_beolink_jid entity check
Clarify invalid entity error message
* Remove redundant "entity" from string
* Fix invalid typing
fix state assertions
* Fix raised error type
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Force root import of references from other components
* Improve
* Adjust
* Tweak exceptions
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Adjust
* More
* Ignore violations in test
* Improve
* if the derivative is negative, ignore it
* add option to ignore the negatives or not
* add tests for a new ignore negative derivative
* add missing description when editing
* rename to ignore_negative_derivative
to increase clarity of which negative I mean
in case in the future we want a ignore_negative_value...
* use state_class=total_increasing to ignore the negative derivative
* remove ignore negative from the config
* add test for total_increasing_reset case
* add comments
* update test_total_increasing_reset with history tests
Also remove the last comment because the test is already clear
My existing comment there isn't unique to this unit test but applies to the entire component. The existing web documentation pointing to Wikipedia should suffice.
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Fix default names for cover entities
* Drop component index if only one component exists
* Improve doc strings
* Use more consistent naming
* Typo
* Revert removing index 0 from entity names
* Improve names for RGB(W) lights
* Added additional sensor to Weheat
* Added tests for old and new sensors
* Added energy sensor
* Changed tests to use snapshot
* Removed unused value and regenerated the ambr
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* changed DHW sensor creation
* Wrapped lambda function
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Add acknowledge flag to config_entry
* Add acknowledge option to lcn configuration
* Fix tests
* Bump pypck to 0.7.23
* Add entry fixture for config_entry version 1.1 to test migration
* Add data_description to strings.json
* Create versioned config_entry in tests