Add entity widget type. Preparing to make entity build it's own badge

This commit is contained in:
estevez
2018-10-03 16:44:11 +03:00
parent e7ca1209e2
commit 4725953b32
9 changed files with 27 additions and 19 deletions

View File

@ -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) {