-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add preview to Threshold config & option flow #111043
Closed
Closed
Changes from 3 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
3b5fccd
Add preview to Threshold config & option flow
jpbede 884c3ea
Fix import
jpbede 7c52537
Fix import
jpbede f849410
Merge branch 'dev' into threshold-config-flow-preview
emontnemery 189c07d
Correct state class of ecowitt hourly rain rate sensors (#110475)
pantonvich 7862596
Add `open` state to LockEntity (#111968)
gjohansson-ST 92b246f
Fix nibe_heatpump climate for models without cooling support (#114599)
tizianodeg 84a91a8
Improve config entry has already been setup error message (#117091)
bdraco 6b3ffad
Fix nws blocking startup (#117094)
MatthewFlamm 20b2924
Make the mqtt discovery update tasks eager and fix race (#117105)
jbouwh 159f0fc
Migrate baf to use config entry runtime_data (#117081)
bdraco 840d8cb
Add open and opening state support to MQTT lock (#117110)
jbouwh 1d833d3
Avoid storing Bluetooth scanner in hass.data (#117074)
bdraco 8c37b3a
Migrate govee_ble to use config entry runtime_data (#117076)
bdraco ead69af
Avoid creating a task to clear the hass instance at test teardown (#1…
bdraco 03dcede
Avoid creating inner tasks to load storage (#117099)
bdraco 6eeeafa
Speed up tests by making mock_get_source_ip session scoped (#117096)
bdraco 8464c95
Migrate yalexs_ble to use config entry runtime_data (#117082)
bdraco 0015088
Migrate elkm1 to use config entry runtime_data (#117077)
bdraco 6da432a
Bump python-roborock to 2.1.1 (#117078)
Lash-L 589104f
Export MQTT subscription helpers at integration level (#116150)
jbouwh ac54cdc
Enable Ruff RUF010 (#115371)
autinerd fe9e5e4
Ignore Ruff SIM103 (#115732)
autinerd ac9b8cc
Add a missing `addon_name` placeholder to the SkyConnect config flow …
puddly 89049bc
Fix config entry _async_process_on_unload being called for forwarded …
bdraco 12759b5
Store runtime data inside the config entry in Tuya (#116822)
mib1185 b60c90e
Goodwe Increase max value of export limit to 200% (#117090)
mletenay 412e9bb
Add test data for Zeo and Dyad devices to Roborock (#117054)
Lash-L f9413fc
Bump goodwe to 0.3.5 (#117115)
mletenay a77add1
Add better testing to vacuum platform (#112523)
Lash-L 04c0b7d
Use HassKey for importlib helper (#117116)
cdce8p 19c26b7
Move available property in BasePassiveBluetoothCoordinator to Passive…
bdraco 32061d4
Bump github/codeql-action from 3.25.3 to 3.25.4 (#117127)
dependabot[bot] 6485973
Add airgradient integration (#114113)
joostlek b30a02d
Add base entity for Airgradient (#117135)
joostlek c1f0ebe
Add screenlogic service tests (#116356)
dieselrabbit 333d5a9
Speed up test teardown when no config entries are loaded (#117095)
bdraco 82e1205
Fix typo in xiaomi_ble translation strings (#117144)
jbouwh 3fa2db8
Catch auth exception in husqvarna automower (#115365)
Thomas55555 e4a3cab
Bump ruff to 0.4.4 (#117154)
autinerd 4138c7a
Handle tilt position being None in HKC (#117141)
bdraco d4fbaef
Raise ServiceValidationError in Nibe climate services (#117171)
tizianodeg 8c54587
Improve base entity state in Vogel's MotionMount integration (#109043)
RJPoelstra 11f5b48
Add standard deviation calculation to group (#112076)
CoRfr e0edea6
Add preview to Threshold config & option flow
jpbede 210cd23
Merge branch 'threshold-config-flow-preview' of github.com:jpbede/hom…
jpbede b34991f
Move guard to `async_start_preview`
jpbede File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
tests/components/threshold/snapshots/test_config_flow.ambr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# serializer version: 1 | ||
# name: test_config_flow_preview_success[missing_entity_id] | ||
dict({ | ||
'attributes': dict({ | ||
'friendly_name': '', | ||
}), | ||
'state': 'unavailable', | ||
}) | ||
# --- | ||
# name: test_config_flow_preview_success[missing_upper_lower] | ||
dict({ | ||
'attributes': dict({ | ||
'entity_id': 'sensor.test_monitored', | ||
'friendly_name': 'Test Sensor', | ||
'hysteresis': 0.0, | ||
'lower': None, | ||
'position': 'unknown', | ||
'sensor_value': 16.0, | ||
'type': 'upper', | ||
'upper': None, | ||
}), | ||
'state': 'unknown', | ||
}) | ||
# --- | ||
# name: test_config_flow_preview_success[success] | ||
dict({ | ||
'attributes': dict({ | ||
'entity_id': 'sensor.test_monitored', | ||
'friendly_name': 'Test Sensor', | ||
'hysteresis': 0.0, | ||
'lower': 20.0, | ||
'position': 'below', | ||
'sensor_value': 16.0, | ||
'type': 'lower', | ||
'upper': None, | ||
}), | ||
'state': 'on', | ||
}) | ||
# --- | ||
# name: test_options_flow_preview | ||
dict({ | ||
'attributes': dict({ | ||
'entity_id': 'sensor.test_monitored', | ||
'friendly_name': 'Test Sensor', | ||
'hysteresis': 0.0, | ||
'lower': 20.0, | ||
'position': 'below', | ||
'sensor_value': 16.0, | ||
'type': 'lower', | ||
'upper': None, | ||
}), | ||
'state': 'on', | ||
}) | ||
# --- |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this case added? If it's only needed for preview, it should be possible to handle it in
async_start_preview
, if it's a bug fix it should be moved to a separate PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, that's just the case for preview. I moved this to
async_start_preview
. See the new PR as I screwed up the rebase