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

103 feat add new device lambda sensor #130

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

jontofront
Copy link
Owner

This pull request introduces a new Lambda module to the econet300 component, adding support for Lambda sensors. The changes primarily involve adding new classes and methods to handle the Lambda module and updating the relevant files to integrate these additions.

Key changes include:

Addition of Lambda Module:

  • custom_components/econet300/const.py: Added DEVICE_INFO_LAMBDA_NAME constant to define the name for the Lambda module.

  • custom_components/econet300/entity.py:

    • Imported DEVICE_INFO_LAMBDA_NAME and added a new class LambdaEntity to represent the Lambda module. This class includes a device_info property to return the device information. [1] [2]
  • custom_components/econet300/sensor.py:

    • Imported LambdaEntity and added a new class LambdaSensors to represent Lambda sensors. This class initializes Lambda sensor instances. [1] [2]
    • Added functions create_lambda_sensor_entity_description and create_lambda_sensors to create Lambda sensor entity descriptions and instances.
    • Updated async_setup_entry to include Lambda sensors in the setup process.

@jontofront jontofront linked an issue Dec 16, 2024 that may be closed by this pull request
Copy link
Collaborator

@KirilKurkianec KirilKurkianec left a comment

Choose a reason for hiding this comment

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

Legit

@jontofront jontofront merged commit 04c6b7d into master Dec 16, 2024
6 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.

[Feat]: add new device Lambda sensor
2 participants