blob: a1e92c8eb40b3a648659e9c83e6913e3480ebeaa [file] [log] [blame]
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Module for Color Temperature Light endpoint command handler."""
from typing import Any, Dict
from gazoo_device import errors
from local_agent.translation_layer.command_handlers import base
from local_agent.translation_layer.command_handlers.cluster_handlers import color
ENDPOINT_CAPABILITY = 'color_temperature_light'
# TODO(b/209362086): Add other clusters to this handler.
class ColorTemperatureLightCommandHandler(
base.BaseCommandHandler, color.ColorControlHandler):
"""Command handler for OnOffLight endpoint."""
SUPPORTED_METHODS = (color.ColorControlHandler.SUPPORTED_METHODS)
def __init__(self, dut: Any) -> None:
super().__init__(dut)
self.endpoint = self.dut.color_temperature_light