Resolves #283 Add possibility to restrat HA
This commit is contained in:
@ -15,6 +15,8 @@ class AutomationEntity extends Entity {
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: <Widget>[
|
||||
FlatServiceButton(
|
||||
serviceDomain: domain,
|
||||
entityId: entityId,
|
||||
text: "TRIGGER",
|
||||
serviceName: "trigger",
|
||||
)
|
||||
|
@ -6,6 +6,9 @@ class ButtonEntity extends Entity {
|
||||
@override
|
||||
Widget _buildStatePart(BuildContext context) {
|
||||
return FlatServiceButton(
|
||||
entityId: entityId,
|
||||
serviceDomain: domain,
|
||||
serviceName: 'turn_on',
|
||||
text: "EXECUTE",
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user