Commit Graph
11 Commits
Author SHA1 Message Date
mohammad 5493ca6fb0 Refactor device filtering logic to improve code readability 2025-04-17 10:38:25 +03:00
mohammad 7005d8ba83 Refactor device filtering logic and improve code readability
- Extracted the logic for filtering implemented devices into a separate method `_getOnlyImplementedDevices`
- Created a set `allowedDevices` to store the allowed device types
- Updated the filtering logic to use the `allowedDevices` set for checking device types
- Removed unnecessary conditions for filtering devices

Fix nullability issues in `Action` model

- Added null checks for `actionExecutor`, `entityId`, `name`, `type`, and `productType` properties in the `fromJson` method of the `Action` model
- Set default values for `actionExecutor` and `entityId` if they are null
- Updated the type casting for `name`, `type`, and `productType` properties to avoid potential nullability issues
2025-04-17 10:16:10 +03:00
mohammad 60df77efad add OneGang product type to routine 2025-04-17 09:32:20 +03:00
hannathkadher 3f7f7ce49f updated project hardcoded values 2025-02-16 20:55:13 +04:00
Abdullah Alassaf 33d2bbc91f Hide unused widgets 2024-12-17 01:13:36 +03:00
hannathkadher 87a4a88417 fixed automation 2024-11-02 23:10:24 +04:00
hannathkadher 13a4bf25b3 added unit devices 2024-10-30 19:16:10 +04:00
Abdullah Alassaf ce94d91f83 Fetched devices based on the unit id 2024-07-01 22:27:15 +03:00
ashrafzarkanisala 9fe25b9bd3 finished adding tasks and removing them , added error handling 2024-06-26 20:32:34 +03:00
ashrafzarkanisala 6413d2b876 working on functions view 2024-06-25 10:38:39 +03:00
ashrafzarkanisala 759888857d finished rooms call with all devices and single devices call 2024-06-23 20:12:38 +03:00