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

Make the heater_bed printer object optional #328

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Conversation

cashew22
Copy link
Collaborator

The patch adds the bed sensors (temperature, target, power) only when the heater_bed object is available.

This fix cases where the integration was not starting without the heater_bed object.

#324

The patch adds the bed sensors (temperature, target, power) only when
the heater_bed object is available.

This fix cases where the integration was not starting without the
heater_bed object.
assert await async_setup_entry(hass, config_entry)
await hass.async_block_till_done()

assert hass.states.get("sensor.mainsail_bed_target").state == "0.0"

Choose a reason for hiding this comment

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

I would probably test that this works and there is no sensors, but other sensors works

@cashew22 cashew22 merged commit 09f250d into main Apr 22, 2024
6 checks passed
@cashew22 cashew22 deleted the bugfix/heater_bed_opt branch April 22, 2024 14:42
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.

None yet

2 participants