Skip to content
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 Calibration at a per-scanner level #275

Merged
merged 4 commits into from
Aug 5, 2024
Merged

Conversation

Lash-L
Copy link
Contributor

@Lash-L Lash-L commented Aug 4, 2024

Per our discussions - here's part 1 and 2 of our discussion. It still needs a bit more work - so I wouldn't merge it yet, but it is ready for some review

Related to:#45
Todo:

  • Add to diagnostics
  • Tests (?) - will probably skip for now

@Lash-L Lash-L marked this pull request as draft August 4, 2024 03:20
@Lash-L Lash-L marked this pull request as ready for review August 4, 2024 23:15
Copy link
Owner

@agittins agittins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome!

@@ -122,6 +125,10 @@
CONF_REF_POWER, DEFAULT_REF_POWER = "ref_power", -55.0
DOCS[CONF_REF_POWER] = "Default RSSI for signal at 1 metre."

CONF_SAVE_AND_CLOSE = "save_and_close"
CONF_SCANNER_INFO = "scanner_info"
CONF_RSSI_OFFSET = "rssi_offset"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd like to rename this offsets (ie, plural) so it's clear that this points to a dict of offsets for each scanner, rather than a single value (assuming I'm reading this right)

SelectSelector,
SelectSelectorConfig,
SelectSelectorMode,
)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great.

@@ -144,6 +163,8 @@ async def async_step_init(self, user_input=None): # pylint: disable=unused-argu
menu_options={
"globalopts": "Global Options",
"selectdevices": "Select Devices",
"calibration1_global": "Calibration 1: Global",
"calibration2_scanner": "Calibration 2: Scanner",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd go plural scanners for both label and value here, too.

custom_components/bermuda/config_flow.py Outdated Show resolved Hide resolved
@agittins agittins merged commit 576a563 into agittins:main Aug 5, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants