-
Notifications
You must be signed in to change notification settings - Fork 4
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
Handle Long entity names #115
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Description updated to latest commit (f100f72)
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Review 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
User description
Handle Long entity names due to long
DeviceInfo
namessolves #113
PR Type
Bug fix, Enhancement
Description
IecEntityType
enum to differentiate between GENERIC, CONTRACT, and METER entity types.get_device_info
function to utilize the newIecEntityType
, improving how device information is constructed.en.json
to make the UI text more concise and user-friendly.Changes walkthrough 📝
binary_sensor.py
Enhance binary sensor initialization and device info handling
custom_components/iec/binary_sensor.py
IecEntityType
to the binary sensor initialization.device_info
method to useIecEntityType
.commons.py
Introduce IecEntityType enum and refactor device info retrieval
custom_components/iec/commons.py
IecEntityType
enum for differentiating entity types.get_device_info
to utilizeIecEntityType
and enhanceddevice info details.
iec_entity.py
Update IEC entity base class to support entity type differentiation
custom_components/iec/iec_entity.py
IecEntityType
to entity initialization.sensor.py
Refactor sensor descriptions and initialization for entity type
specificity
custom_components/iec/sensor.py
descriptions.
en.json
Streamline translation entries and improve user interface text
custom_components/iec/translations/en.json
prefix.