forked from mileperhour/localtuya-homeassistant
-
Notifications
You must be signed in to change notification settings - Fork 591
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
Adopt changes from more maintained fork #1928
Open
CloCkWeRX
wants to merge
705
commits into
rospogrigio:master
Choose a base branch
from
CloCkWeRX:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Loggers prefix will contains the name of the device if has. * Add warning if sub-device disconnected!.
* Update config_flow.py * Update cloud_api.py
* Each device object has not it own reconnect task. * The reconnect task is now awaitable so no duplicates should happen. * Sub-devices won't reconnect if the device it self isn't connected.
* Each device object has not it own reconnect task. * The reconnect task is now awaitable so no duplicates should happen. * Sub-devices won't reconnect if the device it self isn't connected.
…#275 * Fix socket.send() raised exception. * Fix the update_interval create multi tasks. * Adjust the logs to for sub-device and low-power devices. * Add msg for disconnected function. * Workaround to fix heartbeat not being. send because update_interval less then 5 secs. * Handle the fail connection expectations. * Add device ID and Name in logger when add new device.
* Fix brightness mapping The minimum brightness value does not create a "range": it is only a limitation, e.g. by device capabilities. The range to be mapped is still (0, maximum). This also maps percentages to equal values between ranges. * Round Tuya brightness to 10th
* White/color/scene mode switch from Light HA object UI * Handling extended Effects list in Light UI * Long string formatting * Renamed color modes * Correct name of a scene in Smart Life * Add color modes to effects dynamically * black code formatter --------- Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>
* Excess warning for low power devices * black reformat --------- Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>
* add head and key parser and refactor some codes * add docstrings * feat: add remote services to handle manual adding of codes * Remove the extra zero at start of the key
…s/fahren…" (rospogrigio#557) This reverts commit d757e4a.
* Fix typos and improve some sentences in README * Update README.md Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com> * Update README.md Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com> * Update README.md Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com> * Update README.md --------- Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>
* Adjust the sleep time for true periodic events * Avoid empty offline/online state parsing * Increased timeout for connect. Named timeout values. * Named timeout values. * Apply suggestions from code review Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com> * Black codestyle complain * Monotonic timers for intervals * Redundant task * Faster is_sleep * tabs -> spaces :( * Apply suggestions from code review Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com> * Eliminated now useless on_connected --------- Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>
Due to the logic of "_update_handler" if new status updated from device but the status aren't changed from cached one entity "status_updated" won't be called, this adds workaround to override the old cached status.
* fix links * update events. * add remote services * danger -> warning
* add vertical and horizontal swings
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fix #1854
Fix #781
It took about an hour to merge, the only areas that need to be resolved as conflicts are versions, README and some translations.
Most relevant commits are the last 30.
This is @xZetsubou's branch plus a handful of other PRs for this repo.
Running locally for the past few days, a few devices going offline without logs; so TUYA protocol changes probably need to be double checked for merge conflicts.
1x failing test that is a merge conflict most likely.