Skip to content

Add Novy Cooker Hood integration#169194

Merged
balloob merged 6 commits intodevfrom
novy_cooker_hood_light
Apr 28, 2026
Merged

Add Novy Cooker Hood integration#169194
balloob merged 6 commits intodevfrom
novy_cooker_hood_light

Conversation

@piitaya
Copy link
Copy Markdown
Member

@piitaya piitaya commented Apr 26, 2026

Proposed change

Adds a novy_cooker_hood integration that controls the light on Novy cooker hoods using the radio_frequency platform.

I named the integration Novy Cooker Hood instead of Novy because Novy also have other products (lights, hobs).

During the config flow, the user has to pick an RF transmitter (Broadlink, ESPHome, etc.) and the code their hood is paired with (1-10). Factory code is 1 so it will be 1 for 95% of users.
The config flow then test the hood light. Then it display a Finish / Retry choice so the user can confirm the code is right before the entry is saved.

Only the light platform is included for now. The same RF code is used for on and off.

A PR to add fan platform for the extractor will come after this one (#169380)

Tested with a Broadlink RM4 Pro and my Novy hood on all codes (1 to 10).

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies a diff between library versions and ideally a link to the changelog/release notes is added to the PR description.

To help with the load of incoming pull requests:

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Home Assistant integration (novy_cooker_hood) to control Novy cooker hood lighting via the existing radio_frequency platform (select transmitter + hood code in config flow, then toggle via RF commands).

Changes:

  • Introduces the novy_cooker_hood integration (config flow, base entity, and light platform using rf_protocols codes sent through radio_frequency).
  • Adds translations/strings and quality scale metadata for the new integration.
  • Adds a full test suite covering config flow behavior and light state/restore behavior, plus generated-registry updates.

Reviewed changes

Copilot reviewed 13 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
homeassistant/components/novy_cooker_hood/__init__.py Sets up/unloads the integration and forwards the light platform.
homeassistant/components/novy_cooker_hood/config_flow.py Implements transmitter+code selection and a “test then confirm” flow.
homeassistant/components/novy_cooker_hood/const.py Defines integration constants (code range, defaults, config keys).
homeassistant/components/novy_cooker_hood/entity.py Base entity wiring: device info + availability tracking tied to the transmitter entity.
homeassistant/components/novy_cooker_hood/light.py Light entity that toggles the hood light via RF command(s).
homeassistant/components/novy_cooker_hood/manifest.json Declares integration metadata and dependency on radio_frequency.
homeassistant/components/novy_cooker_hood/quality_scale.yaml Declares quality scale status for the new integration.
homeassistant/components/novy_cooker_hood/strings.json Adds UI strings for config flow and entity naming.
tests/components/novy_cooker_hood/__init__.py Test package marker.
tests/components/novy_cooker_hood/conftest.py Common fixtures (mock RF codes + config entry + setup).
tests/components/novy_cooker_hood/test_config_flow.py Tests config flow paths: success, retry, failures, and aborts.
tests/components/novy_cooker_hood/test_light.py Tests light toggling behavior and restore-state behavior.
homeassistant/generated/integrations.json Registers the new integration in generated metadata.
homeassistant/generated/config_flows.py Registers the new config flow in generated metadata.
CODEOWNERS Adds code ownership entries for the new integration and tests.

Comment thread homeassistant/components/novy_cooker_hood/light.py
@piitaya piitaya marked this pull request as ready for review April 27, 2026 19:09
@piitaya piitaya requested a review from a team as a code owner April 27, 2026 19:09
Copilot AI review requested due to automatic review settings April 27, 2026 19:09
@piitaya piitaya requested a review from balloob as a code owner April 27, 2026 19:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 17 out of 20 changed files in this pull request and generated 2 comments.

Comment thread homeassistant/components/novy_cooker_hood/entity.py Outdated
Comment thread homeassistant/components/novy_cooker_hood/strings.json
Copilot AI review requested due to automatic review settings April 28, 2026 14:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 17 out of 20 changed files in this pull request and generated no new comments.

Comment thread homeassistant/components/novy_cooker_hood/entity.py Outdated
Comment on lines +44 to +48
_attr_assumed_state = True
_attr_color_mode = ColorMode.ONOFF
_attr_supported_color_modes = {ColorMode.ONOFF}
_attr_translation_key = "light"
_attr_should_poll = False
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Assumed state and could poll are base entities I think

Comment thread homeassistant/components/novy_cooker_hood/light.py Outdated
Comment thread homeassistant/components/novy_cooker_hood/strings.json Outdated
Comment thread tests/components/novy_cooker_hood/conftest.py Outdated
Comment on lines +29 to +36
@pytest.fixture(autouse=True)
def mock_toggle_sleep() -> AsyncMock:
"""Skip the toggle gap during the test step."""
with patch(
"homeassistant.components.novy_cooker_hood.config_flow.asyncio.sleep",
AsyncMock(),
) as mocked:
yield mocked
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we instead patch that the delay is 0?

Comment thread homeassistant/components/honeywell_string_lights/manifest.json
@balloob balloob marked this pull request as draft April 28, 2026 18:49
Copilot AI review requested due to automatic review settings April 28, 2026 19:11
@piitaya piitaya marked this pull request as ready for review April 28, 2026 19:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 15 out of 17 changed files in this pull request and generated 1 comment.

Comment thread homeassistant/components/novy_cooker_hood/light.py
@balloob balloob merged commit 65a12b4 into dev Apr 28, 2026
52 checks passed
@balloob balloob deleted the novy_cooker_hood_light branch April 28, 2026 20:24
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Radio-frequency (RF) is becoming a first-class citizen of Home Assistant and can send commands

5 participants