15 lines
319 B
Dart
15 lines
319 B
Dart
part of '../main.dart';
|
|
|
|
class ButtonEntity extends Entity {
|
|
ButtonEntity(Map rawData) : super(rawData);
|
|
|
|
@override
|
|
Widget _buildStatePart(BuildContext context) {
|
|
return FlatServiceButton(
|
|
entityId: entityId,
|
|
serviceDomain: domain,
|
|
serviceName: 'turn_on',
|
|
text: "EXECUTE",
|
|
);
|
|
}
|
|
} |