Example #1
0
        public static IHomeAssistantMqttConfigurationBuilder AddCover(
            this IHomeAssistantMqttConfigurationBuilder configurationBuilder,
            ICoverMqttEntityConfiguration mqttEntityConfiguration)
        {
            configurationBuilder.TryRegisterStatefulEntityBindingManager <ICoverMqttEntityConfiguration, ICover, ICoverEntityDefinition>();

            configurationBuilder.ServiceCollection.AddSingleton(mqttEntityConfiguration);
            return(configurationBuilder);
        }
 public static IMqttEntityControlPanel AddCover(this IMqttEntityControlPanel controlPanel, ICoverMqttEntityConfiguration configuration)
 {
     controlPanel.AddStatefulEntity <ICoverMqttEntityConfiguration, ICover, ICoverEntityDefinition>(configuration);
     return(controlPanel);
 }