103 feat add new device lambda sensor #130
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
: AddedDEVICE_INFO_LAMBDA_NAME
constant to define the name for the Lambda module.custom_components/econet300/entity.py
:DEVICE_INFO_LAMBDA_NAME
and added a new classLambdaEntity
to represent the Lambda module. This class includes adevice_info
property to return the device information. [1] [2]custom_components/econet300/sensor.py
:LambdaEntity
and added a new classLambdaSensors
to represent Lambda sensors. This class initializes Lambda sensor instances. [1] [2]create_lambda_sensor_entity_description
andcreate_lambda_sensors
to create Lambda sensor entity descriptions and instances.async_setup_entry
to include Lambda sensors in the setup process.