mirror of
https://github.com/fmtr/haco.git
synced 2026-11-20 06:56:24 -05:00
18 lines
358 B
Python
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
|