Update smart request parameter handling (#1061)

Changes to the smart request handling:
- Do not send params if null
- Drop the requestId parameter
- get_preset_rules doesn't send parameters for preset component version less than 3
- get_led_info no longer sends the wrong parameters
- get_on_off_gradually_info no longer sends an empty {} parameter
This commit is contained in:
Steven B.
2024-07-23 19:02:20 +01:00
committed by GitHub
parent 06ff598d9c
commit 58afeb28a1
5 changed files with 19 additions and 91 deletions

View File

@@ -16,7 +16,7 @@ class Led(SmartModule, LedInterface):
def query(self) -> dict:
"""Query to execute during the update cycle."""
return {self.QUERY_GETTER_NAME: {"led_rule": None}}
return {self.QUERY_GETTER_NAME: None}
@property
def mode(self):