2024-02-19 17:01:31 +00:00
|
|
|
"""Implementation for child devices."""
|
2024-02-22 19:46:19 +00:00
|
|
|
from typing import Dict
|
|
|
|
|
2024-02-19 17:01:31 +00:00
|
|
|
from ..smartmodule import SmartModule
|
|
|
|
|
|
|
|
|
|
|
|
class ChildDeviceModule(SmartModule):
|
|
|
|
"""Implementation for child devices."""
|
|
|
|
|
|
|
|
REQUIRED_COMPONENT = "child_device"
|
2024-02-22 19:46:19 +00:00
|
|
|
|
|
|
|
def query(self) -> Dict:
|
|
|
|
"""Query to execute during the update cycle."""
|
|
|
|
# TODO: There is no need to fetch the component list every time,
|
|
|
|
# so this should be optimized only for the init.
|
|
|
|
return {
|
|
|
|
"get_child_device_list": None,
|
|
|
|
"get_child_device_component_list": None,
|
|
|
|
}
|