Skip to content

Conversation

@CoMPaTech
Copy link
Member

@CoMPaTech CoMPaTech commented Aug 10, 2024

Points to notice:

Summary by CodeRabbit

  • New Features

    • Enhanced automatic discovery of Plugwise devices through updated integration metadata.
  • Improvements

    • Updated integration name to "Plugwise Beta" for simplicity and clarity.
    • Added support for button controls in the integration, expanding its functionality.
    • Updated Home Assistant version requirement to ensure compatibility with the latest features and fixes.
    • Adjusted update handling in the Plugwise Climate component to improve stability.
  • Documentation

    • Updated the CHANGELOG to reflect recent changes and improvements, providing better insights into updates.

@CoMPaTech CoMPaTech added enhancement New feature or request needs_upstreaming Things that are here in -beta but must be upstreamed to HA-core downstreaming Things that are changed on HA-core side and to be applied to -beta labels Aug 10, 2024
@CoMPaTech CoMPaTech self-assigned this Aug 10, 2024
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 10, 2024

Walkthrough

The recent updates to the Plugwise integration encompass enhancements to the CHANGELOG, manifest, HACS configuration, and project settings. The CHANGELOG now includes an entry for version v0.52.1, detailing code improvements and documentation updates. The manifest and HACS files reflect a simplified name and the addition of automatic device discovery. Additionally, the project configuration description has been refined, indicating a potential rebranding.

Changes

Files Change Summary
CHANGELOG.md Added entry for version v0.52.1, documenting code improvements and notes on documentation updates regarding upstreaming and downstreaming.
custom_components/plugwise/manifest.json, hacs.json Simplified integration name from "Plugwise Smile/Stretch Beta" to "Plugwise Beta," removed after_dependencies, added zeroconf for automatic device discovery, and updated Home Assistant version from "2024.2.0" to "2024.8.0."
pyproject.toml Updated description from "Plugwise Smile/Stretch custom_component (BETA)" to "Plugwise beta custom-component."
custom_components/plugwise/climate.py Introduced a new constant PARALLEL_UPDATES = 0 and adjusted the order of attributes _homekit_mode and _previous_mode.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Plugwise
    participant HomeAssistant

    User->>HomeAssistant: Configure Plugwise
    HomeAssistant->>Plugwise: Initiate async_setup_entry
    Plugwise->>Plugwise: Setup entities
    Plugwise->>HomeAssistant: Register services
    HomeAssistant->>User: Confirm setup
Loading

🐰 In the garden where I play,
New changes bloom and sway,
Streams of code, all bright and neat,
Hop along, a joyful feat!
With every tweak, our hearts align,
Plugwise shines, oh how divine!
🌼✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
CHANGELOG.md (1)

8-8: Ensure clarity and completeness in changelog entries.

The entry "Downstream Core changes" is vague. Consider providing more details about the specific changes or updates to help users understand the impact and scope of these modifications.

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 1b5d532 and 633684a.

Files selected for processing (16)
  • CHANGELOG.md (1 hunks)
  • custom_components/plugwise/init.py (5 hunks)
  • custom_components/plugwise/binary_sensor.py (6 hunks)
  • custom_components/plugwise/button.py (1 hunks)
  • custom_components/plugwise/climate.py (2 hunks)
  • custom_components/plugwise/config_flow.py (4 hunks)
  • custom_components/plugwise/const.py (1 hunks)
  • custom_components/plugwise/coordinator.py (5 hunks)
  • custom_components/plugwise/diagnostics.py (1 hunks)
  • custom_components/plugwise/entity.py (3 hunks)
  • custom_components/plugwise/manifest.json (1 hunks)
  • custom_components/plugwise/number.py (6 hunks)
  • custom_components/plugwise/select.py (4 hunks)
  • custom_components/plugwise/sensor.py (7 hunks)
  • custom_components/plugwise/switch.py (7 hunks)
  • custom_components/plugwise/util.py (1 hunks)
Files skipped from review due to trivial changes (6)
  • custom_components/plugwise/config_flow.py
  • custom_components/plugwise/const.py
  • custom_components/plugwise/coordinator.py
  • custom_components/plugwise/diagnostics.py
  • custom_components/plugwise/entity.py
  • custom_components/plugwise/switch.py
Additional comments not posted (19)
custom_components/plugwise/manifest.json (2)

3-3: Renaming looks good.

The integration name change to "Plugwise Beta" simplifies the branding and aligns with a more streamlined identity.


12-12: Zeroconf addition is beneficial.

Adding the zeroconf entry enhances the integration by allowing automatic discovery of Plugwise devices on the network.

custom_components/plugwise/util.py (1)

20-21: Type annotations update is clear and beneficial.

The updated type annotations improve clarity and type safety by allowing more explicit type definitions in the plugwise_command function.

custom_components/plugwise/button.py (2)

28-32: Refactoring improves readability.

The refactoring of async_setup_entry using a generator expression simplifies the code and maintains the existing logic.


16-16: Removal of unused import is appropriate.

The removal of the unused ATTR_NAME import helps streamline the code.

custom_components/plugwise/select.py (3)

89-94: Refactor improves readability and efficiency.

The use of a generator expression directly in async_add_entities enhances readability and avoids unnecessary list creation.


8-8: Removal of unused import ATTR_NAME.

The removal of ATTR_NAME cleans up the code by eliminating an unused import.


36-36: Verify the impact of PARALLEL_UPDATES set to 0.

Setting PARALLEL_UPDATES to 0 means updates are not parallelized. Ensure this aligns with performance expectations and does not cause delays during multiple updates.

custom_components/plugwise/number.py (3)

85-90: Refactor improves readability and efficiency.

The use of a generator expression directly in async_add_entities enhances readability and avoids unnecessary list creation.


109-118: Improved clarity with upstream constant comments.

The comments about upstream constants enhance clarity, and the logic for self._attr_native_step ensures a reasonable minimum step size for temperature adjustments.


34-34: Verify the impact of PARALLEL_UPDATES set to 0.

Setting PARALLEL_UPDATES to 0 means updates are not parallelized. Ensure this aligns with performance expectations and does not cause delays during multiple updates.

custom_components/plugwise/__init__.py (3)

32-32: Docstring update improves clarity.

The updated docstring accurately reflects the broader scope of setting up "Plugwise components," enhancing clarity.


Line range hint 71-71:
Comments enhance clarity on service registration.

The comments regarding the ServiceCall association clarify the role of delete_notification in the service registration process.


96-96: Docstring update improves clarity.

The updated docstring accurately reflects the broader scope of unloading "Plugwise components," enhancing clarity.

custom_components/plugwise/binary_sensor.py (2)

99-118: Simplified entity addition logic looks good!

The refactoring using a generator expression enhances readability and performance. Ensure that the logic correctly filters and adds entities as intended.


Line range hint 125-157:
Verify notification handling logic.

Ensure that the logic for handling notifications and setting extra state attributes aligns with upstream requirements and functions correctly.

Verification successful

Notification Handling Logic Verified

The usage of PLUGWISE_NOTIFICATION and SEVERITIES in the PlugwiseBinarySensorEntity class aligns with upstream requirements. The logic for handling notifications and setting extra state attributes is correctly implemented.

  • PLUGWISE_NOTIFICATION is used as a key for notifications.
  • SEVERITIES is used to filter message types.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify notification handling logic in PlugwiseBinarySensorEntity.

# Test: Search for the usage of PLUGWISE_NOTIFICATION and SEVERITIES to confirm correct handling.
rg --type python $'PLUGWISE_NOTIFICATION|SEVERITIES'

Length of output: 84


Script:

#!/bin/bash
# Description: Verify notification handling logic in PlugwiseBinarySensorEntity.

# Test: Search for the usage of PLUGWISE_NOTIFICATION and SEVERITIES to confirm correct handling.
rg --type py 'PLUGWISE_NOTIFICATION|SEVERITIES'

Length of output: 779

custom_components/plugwise/climate.py (1)

62-63: Verify the impact of PARALLEL_UPDATES.

The addition of PARALLEL_UPDATES = 0 may affect concurrency behavior. Ensure that this change aligns with the intended design and does not introduce unintended side effects.

Verification successful

Consistent use of PARALLEL_UPDATES = 0 across components

The setting of PARALLEL_UPDATES = 0 is consistently applied across multiple components in the Plugwise integration. This suggests a deliberate design choice to handle updates sequentially, likely to avoid concurrency issues. Ensure that this aligns with the overall design and performance expectations.

  • custom_components/plugwise/climate.py
  • custom_components/plugwise/sensor.py
  • custom_components/plugwise/binary_sensor.py
  • custom_components/plugwise/select.py
  • custom_components/plugwise/switch.py
  • custom_components/plugwise/number.py
  • custom_components/plugwise/button.py
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the impact of `PARALLEL_UPDATES` in Plugwise Climate component.

# Test: Search for the usage of `PARALLEL_UPDATES` to understand its impact.
rg --type python $'PARALLEL_UPDATES'

Length of output: 66


Script:

#!/bin/bash
# Description: Verify the impact of `PARALLEL_UPDATES` in Plugwise Climate component.

# Test: Search for the usage of `PARALLEL_UPDATES` to understand its impact.
rg 'PARALLEL_UPDATES'

Length of output: 507

custom_components/plugwise/sensor.py (2)

463-479: Refactored entity addition logic looks good!

The refactoring using a list comprehension enhances readability and efficiency. Ensure that the logic correctly filters and adds entities as intended.


504-504: Verify native value logic.

Ensure that the logic for returning native values aligns with upstream requirements and functions correctly.

Verification successful

Verified: Native value logic is consistent.

The use of the SENSORS constant in sensor.py aligns with its definition and intended usage. The logic for returning native values appears to function correctly as per upstream requirements.

  • custom_components/plugwise/sensor.py: The line correctly accesses sensor data using the SENSORS key.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify native value logic in PlugwiseSensorEntity.

# Test: Search for the usage of SENSORS to confirm correct native value logic.
rg --type python $'SENSORS'

Length of output: 57


Script:

#!/bin/bash
# Description: Verify native value logic in PlugwiseSensorEntity.

# Test: Search for the usage of SENSORS to confirm correct native value logic.
rg --type py SENSORS

Length of output: 1521

Copy link
Contributor

@bouwew bouwew left a comment

Choose a reason for hiding this comment

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

Please remove the async_setup_entry()-changes, I kept the code like it was because I wanted to keep in the debug-logging for troubleshooting.

@CoMPaTech
Copy link
Member Author

Please remove the async_setup_entry()-changes, I kept the code like it was because I wanted to keep in the debug-logging for troubleshooting.

Reverted but dropped ATTR_NAME just for clarity, tried wrapping/overloading the Core functionality but that would take considerable more mypy time. If it is better for diagnostics we might challenge this to core as well by adding debug check to that helpers class? (Outside of scope for this PR though)

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 633684a and ee11a25.

Files selected for processing (7)
  • custom_components/plugwise/init.py (5 hunks)
  • custom_components/plugwise/binary_sensor.py (7 hunks)
  • custom_components/plugwise/button.py (1 hunks)
  • custom_components/plugwise/number.py (7 hunks)
  • custom_components/plugwise/select.py (5 hunks)
  • custom_components/plugwise/sensor.py (8 hunks)
  • custom_components/plugwise/switch.py (9 hunks)
Files skipped from review as they are similar to previous changes (7)
  • custom_components/plugwise/init.py
  • custom_components/plugwise/binary_sensor.py
  • custom_components/plugwise/button.py
  • custom_components/plugwise/number.py
  • custom_components/plugwise/select.py
  • custom_components/plugwise/sensor.py
  • custom_components/plugwise/switch.py

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between ee11a25 and 29a282b.

Files selected for processing (1)
  • custom_components/plugwise/binary_sensor.py (7 hunks)
Files skipped from review as they are similar to previous changes (1)
  • custom_components/plugwise/binary_sensor.py

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 29a282b and c11d0b1.

Files selected for processing (3)
  • custom_components/plugwise/init.py (6 hunks)
  • custom_components/plugwise/climate.py (3 hunks)
  • custom_components/plugwise/const.py (2 hunks)
Files skipped from review as they are similar to previous changes (2)
  • custom_components/plugwise/init.py
  • custom_components/plugwise/const.py
Additional comments not posted (2)
custom_components/plugwise/climate.py (2)

108-109: Reordering attributes for clarity.

The reordering of _previous_mode and _homekit_mode improves the organizational clarity of the code.


62-62: Verify the intention behind setting PARALLEL_UPDATES to 0.

Setting PARALLEL_UPDATES to 0 suggests that updates should be processed sequentially. Verify if this is the intended behavior to prevent potential conflicts or race conditions.

Verification successful

Consistent usage of PARALLEL_UPDATES set to 0 across components.

The PARALLEL_UPDATES constant is set to 0 in multiple files within the custom_components/plugwise directory. This suggests a deliberate choice to handle updates sequentially, likely to prevent concurrency issues or align with upstream requirements. The consistent pattern across different components supports this interpretation.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the usage and impact of `PARALLEL_UPDATES` in the codebase.

# Test: Search for the usage of `PARALLEL_UPDATES`. Expect: Understand its role in the update mechanism.
rg --type python -A 3 $'PARALLEL_UPDATES'

Length of output: 71


Script:

#!/bin/bash
# Description: Verify the usage and impact of `PARALLEL_UPDATES` in the codebase.

# Test: Search for the usage of `PARALLEL_UPDATES` across all Python files.
rg 'PARALLEL_UPDATES' --glob '*.py' -A 3

Length of output: 1565

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between c11d0b1 and 5b423b7.

Files selected for processing (1)
  • custom_components/plugwise/init.py (6 hunks)
Files skipped from review as they are similar to previous changes (1)
  • custom_components/plugwise/init.py


async def async_setup_entry(hass: HomeAssistant, entry: PlugwiseConfigEntry) -> bool:
"""Set up the Plugwise Device from a config entry."""
"""Set up Plugwise components from a config entry."""
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we write here: """Set up the Plugwise Integration from...?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a complete mixed bag ... I've rewritten most of them to Set up Plugwise x from config entry now though with your next comment we might need more of those. Core is a mix of Plugwise and Smile and ConfigEntry vs config entry :)
Maybje just Setup Plugwise from a config Entry?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe Set up the Plugwise Integration from a config entry?
Good to add config entry 👍


async def async_unload_entry(hass: HomeAssistant, entry: PlugwiseConfigEntry) -> bool:
"""Unload a config entry."""
"""Unload the Plugwise components."""
Copy link
Contributor

Choose a reason for hiding this comment

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

Also here: """Unload the Plugwise Integration.? Or """ Unload the Plugwise platforms.? Or """Unload the Plugwise config entry.? The last two seem to make the most sense, to me :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Upload plugwise (also followed Core on this one)

Copy link
Contributor

Choose a reason for hiding this comment

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

Unload the Plugwise config entry? Fits nicely with the async_setup_entry() docstring.

Comment on lines 143 to 148
LOGGER.debug(
"Migrating entity %s from old unique ID '%s' to new unique ID '%s'",
entity_id,
old_unique_id,
new_unique_id,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's get rid of this debug-message.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's still in core, adjusting and flagging accordingly

if control_state == STATE_OFF:
if (control_state := self.device.get(CONTROL_STATE)) in (HVACAction.COOLING, HVACAction.HEATING, HVACAction.PREHEATING):
return control_state
if control_state == HVACMode.OFF:
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this work with mypy?

Copy link
Member Author

Choose a reason for hiding this comment

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

The strange thing is some .get constructs do work in Core but not in beta ...

Copy link
Contributor

Choose a reason for hiding this comment

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

I meant the control_state - str vs HVACMode.Off - StrEnum.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
custom_components/plugwise/sensor.py (1)

Line range hint 470-493:
Consider removing commented-out code.

The commented-out code might be useful for debugging but should be removed or documented before finalizing the PR to maintain code clarity.

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 5b423b7 and e8add7a.

Files selected for processing (8)
  • custom_components/plugwise/init.py (6 hunks)
  • custom_components/plugwise/binary_sensor.py (7 hunks)
  • custom_components/plugwise/button.py (1 hunks)
  • custom_components/plugwise/climate.py (4 hunks)
  • custom_components/plugwise/number.py (7 hunks)
  • custom_components/plugwise/select.py (5 hunks)
  • custom_components/plugwise/sensor.py (8 hunks)
  • custom_components/plugwise/switch.py (9 hunks)
Files skipped from review as they are similar to previous changes (7)
  • custom_components/plugwise/init.py
  • custom_components/plugwise/binary_sensor.py
  • custom_components/plugwise/button.py
  • custom_components/plugwise/climate.py
  • custom_components/plugwise/number.py
  • custom_components/plugwise/select.py
  • custom_components/plugwise/switch.py
Additional comments not posted (2)
custom_components/plugwise/sensor.py (2)

Line range hint 16-62:
Verify the necessity of the LOGGER import.

The LOGGER import is commented as "pw-beta," suggesting it might be temporary or for debugging. Ensure it's necessary for the final implementation.

Verification successful

LOGGER is actively used in the codebase.

The LOGGER is utilized in multiple files, including sensor.py, for debugging purposes. Its presence is justified given its usage across various components for logging debug information.

  • custom_components/plugwise/sensor.py: LOGGER is used for debugging.

No changes are necessary regarding the LOGGER import.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify if `LOGGER` is used in the codebase.

# Test: Search for the usage of `LOGGER`. Expect: Occurrences of `LOGGER` usage.
rg --type python 'LOGGER'

Length of output: 56


Script:

#!/bin/bash
# Description: Verify if `LOGGER` is used in the codebase.

# Test: Search for the usage of `LOGGER`. Expect: Occurrences of `LOGGER` usage.
rg 'LOGGER'

Length of output: 2182


520-520: LGTM! Verify the availability of upstream constants.

The native_value property implementation is correct. Ensure that all upstream constants used are available and correctly imported.

Verification successful

Verification Successful: Upstream Constant Available

The SENSORS constant is defined in custom_components/plugwise/const.py and is correctly used in sensor.py. The implementation of the native_value property in PlugwiseSensorEntity is valid. No issues found.

  • custom_components/plugwise/const.py: SENSORS: Final = "sensors"
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the availability of upstream constants used in `native_value`.

# Test: Search for the definition of `SENSORS`. Expect: Definition of `SENSORS`.
rg --type python 'SENSORS'

Length of output: 57


Script:

#!/bin/bash
# Description: Verify the availability of upstream constants used in `native_value`.

# Test: Search for the definition of `SENSORS`. Expect: Definition of `SENSORS`.
rg --type py 'SENSORS'

Length of output: 1872

@CoMPaTech
Copy link
Member Author

In 'our' HA core there is a pwsmall branch fwiw (not yet fully up to par)

Copy link
Contributor

@bouwew bouwew left a comment

Choose a reason for hiding this comment

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

Ok, let's merge these updates!

@bouwew
Copy link
Contributor

bouwew commented Aug 16, 2024

I added the zeroconf-line in my system, all looks normal after a HA restart.

@CoMPaTech CoMPaTech marked this pull request as ready for review August 17, 2024 08:38
@CoMPaTech CoMPaTech requested a review from a team as a code owner August 17, 2024 08:38
@CoMPaTech
Copy link
Member Author

Confirmed for merge?

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
CHANGELOG.md (1)

7-7: Add missing comma for clarity.

Consider adding a comma after "updates" for improved readability.

Apply this diff to add the missing comma:

- Downstream the latest Core Plugwise updates.
+ Downstream the latest Core Plugwise updates,.
Tools
LanguageTool

[uncategorized] ~7-~7: Possible missing comma found.
Context: ...ersions from 0.40 and up ## v0.52.1 - Downstream the latest Core Plugwise updates. - Doc...

(AI_HYDRA_LEO_MISSING_COMMA)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 2b4c5b5 and cd1fe9a.

Files selected for processing (2)
  • CHANGELOG.md (1 hunks)
  • custom_components/plugwise/manifest.json (1 hunks)
Additional context used
LanguageTool
CHANGELOG.md

[uncategorized] ~7-~7: Possible missing comma found.
Context: ...ersions from 0.40 and up ## v0.52.1 - Downstream the latest Core Plugwise updates. - Doc...

(AI_HYDRA_LEO_MISSING_COMMA)

Additional comments not posted (3)
custom_components/plugwise/manifest.json (3)

3-3: Name change approved.

The name change from "Plugwise Smile/Stretch Beta" to "Plugwise Beta" simplifies the integration's branding.


11-11: Version update approved.

The version update from "0.52.0" to "0.52.1" reflects the recent changes and improvements.


12-12: Zeroconf addition approved.

The addition of the zeroconf key with ["_plugwise._tcp.local."] enables automatic device discovery, improving user experience.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between cd1fe9a and 1664c00.

Files selected for processing (2)
  • hacs.json (1 hunks)
  • pyproject.toml (1 hunks)
Files skipped from review due to trivial changes (1)
  • pyproject.toml
Additional comments not posted (3)
hacs.json (3)

2-2: Verify consistency of the integration name change.

The integration name has been simplified to "Plugwise beta." Ensure that this change is reflected consistently across all related documentation and code references to avoid confusion.


5-5: Verify implementation and testing for the new "button" domain.

The "button" domain has been added to the supported domains. Ensure that the necessary code to support this domain is implemented and thoroughly tested.


12-12: Verify compatibility with the updated Home Assistant version.

The required Home Assistant version has been updated to "2024.8.0." Ensure that this version aligns with the integration's dependencies and functionalities, and that any new features or fixes are utilized.

@sonarqubecloud
Copy link

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 1664c00 and 3d4eaf4.

Files selected for processing (1)
  • custom_components/plugwise/climate.py (5 hunks)
Files skipped from review as they are similar to previous changes (1)
  • custom_components/plugwise/climate.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

downstreaming Things that are changed on HA-core side and to be applied to -beta enhancement New feature or request needs_upstreaming Things that are here in -beta but must be upstreamed to HA-core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants