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

Split entity between entity and executor logic [refactor] #506

Merged
merged 8 commits into from
Aug 10, 2021

Conversation

iMicknl
Copy link
Owner

@iMicknl iMicknl commented Aug 4, 2021

Sorry in advance, this PR will be huge to review. I am trying to pull back the changes we had to make for core, in our custom component.

Core reviewers gave feedback that we should put the 'non entity' logic in a separate executor.. See https://github.com/home-assistant/core/tree/rework-tahoma/homeassistant/components/overkiz.

Already starting to rename some parts to Overkiz.

@github-actions github-actions bot added the enhancement New feature or request label Aug 4, 2021
tetienne
tetienne previously approved these changes Aug 10, 2021
Copy link
Collaborator

@tetienne tetienne left a comment

Choose a reason for hiding this comment

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

It indeed makes entity well more clear and readable.

iMicknl and others added 2 commits August 10, 2021 00:36
commit 9505d8c
Author: Mick Vleeshouwer <Mick.Vleeshouwer@microsoft.com>
Date:   Tue Aug 10 02:03:19 2021 -0700

    Add sensors dynamically based on available device state (#425)

    * Add temporary state sensor

    * Add extra sensors

    * Add more states

    * Add more sensors

    * Create supported_platforms variable

    * Use Overkiz label as device name

    * Suffix state sensor name with device index

    * Avoid to duplicate state key

    * Remove now usless rssi level attribute

    * Migrate LightSensor to TahomaStateSensor

    * Apply linters

    * Add PriorityLockOriginatorState sensor

    * Bump minimum version to 2021.8

    * Remove unneeded value key

    * Migrate to SensorEntityDescription

    * Small tweaks

    * Add battery level

    * Remove unused state keys

    * Test electricity sensor

    * Add extra sensors

    * Add sensor

    * Add all sensors from sensor.py

    * Add smoke text sensor

    * Make optional

    * Change all sensor to new structure

    * Improve sensor definitions

    * Ease state

    * Ease retrieve of the index

    * Rollback device_state_attributes

    * Revert battery changes

    * Remove const

    * Add LightSensor

    * Rollback icon logic in cover

    * Bugfixes

    * Add round for RSSI value

    Co-authored-by: Thibaut Etienne <thibaut@etienne.pw>

commit e7a4554
Author: Mick Vleeshouwer <Mick.Vleeshouwer@microsoft.com>
Date:   Tue Aug 10 01:56:39 2021 -0700

    Add binary sensors dynamically based on available device state (#505)

    * Refactor binary sensor

    * Make import relative

    * Style fix

    * Update custom_components/tahoma/__init__.py

    Co-authored-by: Thibaut <thibaut@etienne.pw>

    * Add extra binary sensors

    * Clean for final PR

    * Feedback applied

    Co-authored-by: Thibaut <thibaut@etienne.pw>

commit da5b26e
Author: Mick Vleeshouwer <Mick.Vleeshouwer@microsoft.com>
Date:   Tue Aug 10 01:34:16 2021 -0700

    Temporary bugfix for AwningValance (until this is fixed serverside) (#511)

    * Temporary bugfix for #486

    * Add note
# Conflicts:
#	custom_components/tahoma/binary_sensor.py
#	custom_components/tahoma/cover_devices/tahoma_cover.py
#	custom_components/tahoma/sensor.py
#	custom_components/tahoma/tahoma_entity.py
@iMicknl iMicknl merged commit ead6d92 into master Aug 10, 2021
@iMicknl iMicknl deleted the enhancement/add_executor branch August 10, 2021 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants