This file contains hidden or 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: GE Switch Double Taps | |
| description: Create automations to react to double taps from supporting GE switches. | |
| domain: automation | |
| input: | |
| device: | |
| name: Switch Device | |
| description: A GE switch that supports double taps. | |
| selector: |
This file contains hidden or 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
| using System.ComponentModel.DataAnnotations; | |
| using Microsoft.AspNetCore.Mvc.DataAnnotations; | |
| using Microsoft.Extensions.Localization; | |
| public class CustomValidationAttributeAdapterProvider : IValidationAttributeAdapterProvider | |
| { | |
| readonly IValidationAttributeAdapterProvider baseProvider = new ValidationAttributeAdapterProvider(); | |
| public IAttributeAdapter GetAttributeAdapter(ValidationAttribute attribute, IStringLocalizer stringLocalizer) | |
| { |