{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":790830353,"defaultBranch":"main","name":"midea-local","ownerLogin":"rokam","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2024-04-23T15:55:35.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/2856518?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1726934624.0","currentOid":""},"activityList":{"items":[{"before":"3bdec5cbbad960d4fbc5b9a5520fa7c9219fe405","after":"9e9725daa2f6b9012a9255b9e826f9f2d40818a2","ref":"refs/heads/release-please--branches--main","pushedAt":"2024-09-21T16:03:45.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"rokam","name":"Lucas Mindêllo de Andrade","path":"/rokam","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2856518?s=80&v=4"},"commit":{"message":"chore(main): release 3.0.1","shortMessageHtmlLink":"chore(main): release 3.0.1"}},{"before":null,"after":"3bdec5cbbad960d4fbc5b9a5520fa7c9219fe405","ref":"refs/heads/release-please--branches--main","pushedAt":"2024-09-21T16:03:44.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"rokam","name":"Lucas Mindêllo de Andrade","path":"/rokam","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2856518?s=80&v=4"},"commit":{"message":"fix(device): prevent while true loop high cpu usage bug (#298)\n\nadd a sleep in while true loop and prevent high cpu usage bug\n\n\n## Summary by CodeRabbit\n\n- **Bug Fixes**\n- Improved performance by adding a delay in the processing loop to\nreduce CPU resource consumption.\n- Enhanced logging detail for socket error messages to aid in debugging.\n","shortMessageHtmlLink":"fix(device): prevent while true loop high cpu usage bug (#298)"}},{"before":"7455aff94de00e2d0823b3cc9b873b88eb2ded85","after":null,"ref":"refs/heads/fix_high_cpu","pushedAt":"2024-09-21T16:03:21.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"rokam","name":"Lucas Mindêllo de Andrade","path":"/rokam","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2856518?s=80&v=4"}},{"before":"7b4bf8f1a401461b2942f7b2d1d85c1f6b83ca23","after":"3bdec5cbbad960d4fbc5b9a5520fa7c9219fe405","ref":"refs/heads/main","pushedAt":"2024-09-21T16:03:19.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rokam","name":"Lucas Mindêllo de Andrade","path":"/rokam","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2856518?s=80&v=4"},"commit":{"message":"fix(device): prevent while true loop high cpu usage bug (#298)\n\nadd a sleep in while true loop and prevent high cpu usage bug\n\n\n## Summary by CodeRabbit\n\n- **Bug Fixes**\n- Improved performance by adding a delay in the processing loop to\nreduce CPU resource consumption.\n- Enhanced logging detail for socket error messages to aid in debugging.\n","shortMessageHtmlLink":"fix(device): prevent while true loop high cpu usage bug (#298)"}},{"before":"198af7e22f6eb9bb3fb24fc1dea15e86ab961e3f","after":"7455aff94de00e2d0823b3cc9b873b88eb2ded85","ref":"refs/heads/fix_high_cpu","pushedAt":"2024-09-21T15:25:49.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wuwentao","name":"Hello World","path":"/wuwentao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3353263?s=80&v=4"},"commit":{"message":"chore: change the sleep time from 1 second to 0.1 second","shortMessageHtmlLink":"chore: change the sleep time from 1 second to 0.1 second"}},{"before":"0be91c07c1c4e7c8c6398abd5d6256d59a99d891","after":"198af7e22f6eb9bb3fb24fc1dea15e86ab961e3f","ref":"refs/heads/fix_high_cpu","pushedAt":"2024-09-21T15:03:58.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wuwentao","name":"Hello World","path":"/wuwentao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3353263?s=80&v=4"},"commit":{"message":"chore: change the sleep time from 5 seconds to 1 second","shortMessageHtmlLink":"chore: change the sleep time from 5 seconds to 1 second"}},{"before":"d7ff752d3a3abdc8fdebc1d12a1bcf883a733441","after":"0be91c07c1c4e7c8c6398abd5d6256d59a99d891","ref":"refs/heads/fix_high_cpu","pushedAt":"2024-09-21T14:37:21.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wuwentao","name":"Hello World","path":"/wuwentao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3353263?s=80&v=4"},"commit":{"message":"chore: change warning log level to debug level","shortMessageHtmlLink":"chore: change warning log level to debug level"}},{"before":null,"after":"51a6a4ab53595ad428f84ac67b20927878588e97","ref":"refs/heads/release-v3.0.1","pushedAt":"2024-09-21T14:00:00.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"wuwentao","name":"Hello World","path":"/wuwentao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3353263?s=80&v=4"},"commit":{"message":"chore: release v3.0.1","shortMessageHtmlLink":"chore: release v3.0.1"}},{"before":null,"after":"d7ff752d3a3abdc8fdebc1d12a1bcf883a733441","ref":"refs/heads/fix_high_cpu","pushedAt":"2024-09-21T13:07:36.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"wuwentao","name":"Hello World","path":"/wuwentao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3353263?s=80&v=4"},"commit":{"message":"fix(device): prevent while true loop high cpu usage bug","shortMessageHtmlLink":"fix(device): prevent while true loop high cpu usage bug"}},{"before":"9dafce2b18b2f0a9e7497103a935ef8f139a399f","after":null,"ref":"refs/heads/release-please--branches--main","pushedAt":"2024-09-20T14:27:30.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"rokam","name":"Lucas Mindêllo de Andrade","path":"/rokam","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2856518?s=80&v=4"}},{"before":"7f2e57294802d6ecae64618d28d1659465077672","after":"7b4bf8f1a401461b2942f7b2d1d85c1f6b83ca23","ref":"refs/heads/main","pushedAt":"2024-09-20T14:27:29.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rokam","name":"Lucas Mindêllo de Andrade","path":"/rokam","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2856518?s=80&v=4"},"commit":{"message":"chore(main): release 3.0.0 (#297)\n\n:robot: I have created a release *beep* *boop*\r\n---\r\n\r\n\r\n## [3.0.0](https://github.com/rokam/midea-local/compare/v2.7.1...v3.0.0)\r\n(2024-09-20)\r\n\r\n\r\n### ⚠ BREAKING CHANGES\r\n\r\n* **device:** socket exception and process rebuild\r\n([#296](https://github.com/rokam/midea-local/issues/296))\r\n\r\n### Bug Fixes\r\n\r\n* **device:** socket exception and process rebuild\r\n([#296](https://github.com/rokam/midea-local/issues/296))\r\n([7f2e572](https://github.com/rokam/midea-local/commit/7f2e57294802d6ecae64618d28d1659465077672))\r\n\r\n---\r\nThis PR was generated with [Release\r\nPlease](https://github.com/googleapis/release-please). See\r\n[documentation](https://github.com/googleapis/release-please#release-please).","shortMessageHtmlLink":"chore(main): release 3.0.0 (#297)"}},{"before":"7f2e57294802d6ecae64618d28d1659465077672","after":"9dafce2b18b2f0a9e7497103a935ef8f139a399f","ref":"refs/heads/release-please--branches--main","pushedAt":"2024-09-20T10:36:24.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"rokam","name":"Lucas Mindêllo de Andrade","path":"/rokam","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2856518?s=80&v=4"},"commit":{"message":"chore(main): release 3.0.0","shortMessageHtmlLink":"chore(main): release 3.0.0"}},{"before":null,"after":"7f2e57294802d6ecae64618d28d1659465077672","ref":"refs/heads/release-please--branches--main","pushedAt":"2024-09-20T10:36:23.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"rokam","name":"Lucas Mindêllo de Andrade","path":"/rokam","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2856518?s=80&v=4"},"commit":{"message":"fix(device)!: socket exception and process rebuild (#296)\n\nchanges list:\r\n1. process all the socket send/recv in try/except to prevent socket\r\nerror\r\n2. always close socket after exception matched and force reconnect to\r\nrefresh\r\n3. increase query timeout from 1 to 2, and only apply it to query\r\ncmd/msg\r\n4. recovery socket timeout after query and recv socket msg done in each\r\nfor loop.\r\n5. rebuild process to remove the duplicate message parse.\r\n6. rename some func and args\r\n7. with current changes, I don't see any timeout exception in my local\r\ndevice testing, if there is any new error exist, we can continue improve\r\nit in future PRs.\r\n\r\nFixes #290 \r\n\r\n\r\n## Summary by CodeRabbit\r\n\r\n## Summary by CodeRabbit\r\n\r\n- **New Features**\r\n- Enhanced error handling for device discovery, now reporting\r\n`NoSupportedProtocol` for unsupported devices.\r\n- Streamlined socket connection process, improving reliability and\r\nclarity in communication.\r\n- Introduced `MessageResult` enumeration for improved clarity in message\r\nparsing.\r\n\r\n- **Bug Fixes**\r\n- Updated tests to reflect changes in exception handling, ensuring\r\naccurate responses to device compatibility issues.\r\n\r\n\r\n---------\r\n\r\nCo-authored-by: Lucas Mindêllo de Andrade ","shortMessageHtmlLink":"fix(device)!: socket exception and process rebuild (#296)"}},{"before":"b2dd254f05582fad0d2cfa0cecd511606ba6becf","after":null,"ref":"refs/heads/reset_process","pushedAt":"2024-09-20T10:35:56.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"rokam","name":"Lucas Mindêllo de Andrade","path":"/rokam","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2856518?s=80&v=4"}},{"before":"f2e5e24af79eea3ee8f1a58c8298892f13e51b98","after":"7f2e57294802d6ecae64618d28d1659465077672","ref":"refs/heads/main","pushedAt":"2024-09-20T10:35:54.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rokam","name":"Lucas Mindêllo de Andrade","path":"/rokam","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2856518?s=80&v=4"},"commit":{"message":"fix(device)!: socket exception and process rebuild (#296)\n\nchanges list:\r\n1. process all the socket send/recv in try/except to prevent socket\r\nerror\r\n2. always close socket after exception matched and force reconnect to\r\nrefresh\r\n3. increase query timeout from 1 to 2, and only apply it to query\r\ncmd/msg\r\n4. recovery socket timeout after query and recv socket msg done in each\r\nfor loop.\r\n5. rebuild process to remove the duplicate message parse.\r\n6. rename some func and args\r\n7. with current changes, I don't see any timeout exception in my local\r\ndevice testing, if there is any new error exist, we can continue improve\r\nit in future PRs.\r\n\r\nFixes #290 \r\n\r\n\r\n## Summary by CodeRabbit\r\n\r\n## Summary by CodeRabbit\r\n\r\n- **New Features**\r\n- Enhanced error handling for device discovery, now reporting\r\n`NoSupportedProtocol` for unsupported devices.\r\n- Streamlined socket connection process, improving reliability and\r\nclarity in communication.\r\n- Introduced `MessageResult` enumeration for improved clarity in message\r\nparsing.\r\n\r\n- **Bug Fixes**\r\n- Updated tests to reflect changes in exception handling, ensuring\r\naccurate responses to device compatibility issues.\r\n\r\n\r\n---------\r\n\r\nCo-authored-by: Lucas Mindêllo de Andrade ","shortMessageHtmlLink":"fix(device)!: socket exception and process rebuild (#296)"}},{"before":"a602d9fda4be6603beefe1fc1e898a0bc0e3706f","after":"b2dd254f05582fad0d2cfa0cecd511606ba6becf","ref":"refs/heads/reset_process","pushedAt":"2024-09-20T03:51:26.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wuwentao","name":"Hello World","path":"/wuwentao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3353263?s=80&v=4"},"commit":{"message":"chore: all the socket exception should continue and reconnect","shortMessageHtmlLink":"chore: all the socket exception should continue and reconnect"}},{"before":"5ff3686432c94e8c081ed3f1b243f66d80830ae3","after":"a602d9fda4be6603beefe1fc1e898a0bc0e3706f","ref":"refs/heads/reset_process","pushedAt":"2024-09-20T02:07:41.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wuwentao","name":"Hello World","path":"/wuwentao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3353263?s=80&v=4"},"commit":{"message":"chore: fix recovery socket only recv msg success/padding","shortMessageHtmlLink":"chore: fix recovery socket only recv msg success/padding"}},{"before":"f9f747590eea49f5feff3c04b724fc3c27f96a05","after":"5ff3686432c94e8c081ed3f1b243f66d80830ae3","ref":"refs/heads/reset_process","pushedAt":"2024-09-19T14:37:45.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wuwentao","name":"Hello World","path":"/wuwentao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3353263?s=80&v=4"},"commit":{"message":"chore: fix check_protocol got timeout and not close socket","shortMessageHtmlLink":"chore: fix check_protocol got timeout and not close socket"}},{"before":"d33ed730db55214f907276aa0ae97937c0cace4a","after":"f9f747590eea49f5feff3c04b724fc3c27f96a05","ref":"refs/heads/reset_process","pushedAt":"2024-09-19T01:47:53.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"wuwentao","name":"Hello World","path":"/wuwentao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3353263?s=80&v=4"},"commit":{"message":"fix(device): socket exception and process rebuild","shortMessageHtmlLink":"fix(device): socket exception and process rebuild"}},{"before":"68da7fa11ef7ef25f6a874a9d6092098288b1e2b","after":"d33ed730db55214f907276aa0ae97937c0cace4a","ref":"refs/heads/reset_process","pushedAt":"2024-09-19T01:25:08.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"wuwentao","name":"Hello World","path":"/wuwentao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3353263?s=80&v=4"},"commit":{"message":"fix(device): socket exception and process rebuild","shortMessageHtmlLink":"fix(device): socket exception and process rebuild"}},{"before":"c8d2dc1b9a20c29006c4117336c66e9bcb6269e0","after":"68da7fa11ef7ef25f6a874a9d6092098288b1e2b","ref":"refs/heads/reset_process","pushedAt":"2024-09-19T01:20:47.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"wuwentao","name":"Hello World","path":"/wuwentao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3353263?s=80&v=4"},"commit":{"message":"fix(device): socket exception and process rebuild","shortMessageHtmlLink":"fix(device): socket exception and process rebuild"}},{"before":null,"after":"c8d2dc1b9a20c29006c4117336c66e9bcb6269e0","ref":"refs/heads/reset_process","pushedAt":"2024-09-19T01:17:25.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"wuwentao","name":"Hello World","path":"/wuwentao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3353263?s=80&v=4"},"commit":{"message":"fix(device): socket exception and process rebuild","shortMessageHtmlLink":"fix(device): socket exception and process rebuild"}},{"before":"aa92725ebf50f28f2cd2226db540b869f3fec4fa","after":null,"ref":"refs/heads/pre-commit-ci-update-config","pushedAt":"2024-09-17T10:26:00.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"chemelli74","name":"Simone Chemelli","path":"/chemelli74","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/57354320?s=80&v=4"}},{"before":"3eefdffc33ec0ebaf00f308bf2dfab59277b2c20","after":"f2e5e24af79eea3ee8f1a58c8298892f13e51b98","ref":"refs/heads/main","pushedAt":"2024-09-17T10:25:58.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"chemelli74","name":"Simone Chemelli","path":"/chemelli74","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/57354320?s=80&v=4"},"commit":{"message":"chore(pre-commit.ci): pre-commit autoupdate (#295)\n\n\r\nupdates:\r\n- [github.com/astral-sh/ruff-pre-commit: v0.6.4 →\r\nv0.6.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.4...v0.6.5)\r\n\r\n\r\nCo-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>","shortMessageHtmlLink":"chore(pre-commit.ci): pre-commit autoupdate (#295)"}},{"before":null,"after":"aa92725ebf50f28f2cd2226db540b869f3fec4fa","ref":"refs/heads/pre-commit-ci-update-config","pushedAt":"2024-09-16T19:25:52.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"pre-commit-ci[bot]","name":null,"path":"/apps/pre-commit-ci","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/68672?s=80&v=4"},"commit":{"message":"chore(pre-commit.ci): pre-commit autoupdate\n\nupdates:\n- [github.com/astral-sh/ruff-pre-commit: v0.6.4 → v0.6.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.4...v0.6.5)","shortMessageHtmlLink":"chore(pre-commit.ci): pre-commit autoupdate"}},{"before":"7fdf0dbe521f11d717e36b5fb70304d19978ab3d","after":"9489cd2c5d1b2540624575346ad2fd2aebca112c","ref":"refs/heads/fix-cannot-connect","pushedAt":"2024-09-14T06:24:41.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wuwentao","name":"Hello World","path":"/wuwentao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3353263?s=80&v=4"},"commit":{"message":"chore: update timeout from 1 to 2","shortMessageHtmlLink":"chore: update timeout from 1 to 2"}},{"before":"c33dde1b7307e362ba684b2061c7ccbe0b4b6ddd","after":null,"ref":"refs/heads/release-please--branches--main","pushedAt":"2024-09-13T00:45:15.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"rokam","name":"Lucas Mindêllo de Andrade","path":"/rokam","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2856518?s=80&v=4"}},{"before":"4fc656e110f86c30a9ab8d7b6f55c46b390a4909","after":"3eefdffc33ec0ebaf00f308bf2dfab59277b2c20","ref":"refs/heads/main","pushedAt":"2024-09-13T00:45:13.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rokam","name":"Lucas Mindêllo de Andrade","path":"/rokam","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2856518?s=80&v=4"},"commit":{"message":"chore(main): release 2.7.1 (#292)\n\n:robot: I have created a release *beep* *boop*\r\n---\r\n\r\n\r\n## [2.7.1](https://github.com/rokam/midea-local/compare/v2.7.0...v2.7.1)\r\n(2024-09-12)\r\n\r\n\r\n### Bug Fixes\r\n\r\n* ed device power/lock return message set and body_type 0x15 parse\r\n([#284](https://github.com/rokam/midea-local/issues/284))\r\n([d9d4fac](https://github.com/rokam/midea-local/commit/d9d4faca3bf7a3096f1e12a53dd5953b79f2a422))\r\n\r\n---\r\nThis PR was generated with [Release\r\nPlease](https://github.com/googleapis/release-please). See\r\n[documentation](https://github.com/googleapis/release-please#release-please).","shortMessageHtmlLink":"chore(main): release 2.7.1 (#292)"}},{"before":"f7f797f620265a2a4b2cef14af710ef5da6ba016","after":"7fdf0dbe521f11d717e36b5fb70304d19978ab3d","ref":"refs/heads/fix-cannot-connect","pushedAt":"2024-09-12T07:54:31.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wuwentao","name":"Hello World","path":"/wuwentao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3353263?s=80&v=4"},"commit":{"message":"chore: add try/except for all the socket send/recv","shortMessageHtmlLink":"chore: add try/except for all the socket send/recv"}},{"before":"b77ab6c92146554b57a885d0bb987f7678d6b8c6","after":"c33dde1b7307e362ba684b2061c7ccbe0b4b6ddd","ref":"refs/heads/release-please--branches--main","pushedAt":"2024-09-12T06:54:53.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"rokam","name":"Lucas Mindêllo de Andrade","path":"/rokam","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2856518?s=80&v=4"},"commit":{"message":"chore(main): release 2.7.1","shortMessageHtmlLink":"chore(main): release 2.7.1"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"Y3Vyc29yOnYyOpK7MjAyNC0wOS0yMVQxNjowMzo0NS4wMDAwMDBazwAAAAS8xxD9","startCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wOS0yMVQxNjowMzo0NS4wMDAwMDBazwAAAAS8xxD9","endCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wOS0xMlQwNjo1NDo1My4wMDAwMDBazwAAAAS0BvTU"}},"title":"Activity · rokam/midea-local"}