This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ModelView | |
--------- | |
# field1 (->Model1), field2 (->Model2) filtered by field1 values | |
column_filter_by = ('field2') | |
form_widget_args = { | |
'field2': { | |
'data-filter-by': 'field1', | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def CaseClass(case_class_name, **kwargs): | |
types = {} | |
for k, v in kwargs.items(): | |
if type(v) is not type: | |
raise ValueError("{} is not a type".format(v)) | |
types[k] = v | |
class CaseClassImpl(): | |
initialized = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: ZHA - Lutron Aurora Dimmer v1.3 | |
description: 'Control lights with a Lutron Aurora Dimmer | |
Pressing in the dimmer button will toggle between turning lights on | |
to full brightness, and turning the lights off. | |
Rotating the dimmer will increase and decrease the light brightness. | |
Adjust the sensitivity if updates from the dimmer are being sent too quickly | |
' | |
domain: automation |