haco/haco/pulldown.py
2023-08-29 16:01:23 +01:00

18 lines
358 B
Python

from typing import List
from haco.control import Control
class Pulldown(Control):
NAME = 'select'
def __init__(self, name, options: List[str], icon=None):
self.options = options
super().__init__(name, icon=icon)
def get_config_ha_ex(self):
data = {
'options': self.options,
}
return data