Add entity widget type. Preparing to make entity build it's own badge
This commit is contained in:
@ -22,7 +22,7 @@ class _SwitchEntityWidgetState extends _EntityWidgetState {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget _buildActionWidget(bool inCard, BuildContext context) {
|
||||
Widget _buildActionWidget(BuildContext context) {
|
||||
return Switch(
|
||||
value: widget.entity.assumedState == 'on',
|
||||
onChanged: ((switchState) {
|
||||
|
Reference in New Issue
Block a user