public UhomeUponorClient(HttpClient httpClient, IOptions <UponorConfiguration> configuration)
        {
            _httpClient    = httpClient;
            _configuration = configuration.Value;

            _httpClient.BaseAddress = _configuration.Host;
        }
 public UponorThermostatsService(
     ILogger <UponorThermostatsService> logger,
     IOptions <UponorConfiguration> config,
     FeatureManager featureManager,
     UhomeUponorClient uponorClient,
     HassMqttManager hassMqttManager,
     SystemDetailsContainer detailsContainer)
 {
     _logger           = logger;
     _featureManager   = featureManager;
     _uponorClient     = uponorClient;
     _hassMqttManager  = hassMqttManager;
     _detailsContainer = detailsContainer;
     _config           = config.Value;
 }
示例#3
0
 public UponorDiscoveryService(
     ILogger <UponorDiscoveryService> logger,
     IOptions <UponorConfiguration> config,
     IOptions <UponorOperationConfiguration> operationConfig,
     FeatureManager featureManager,
     UhomeUponorClient uponorClient,
     SystemDetailsContainer detailsContainer,
     HassMqttManager hassMqttManager)
 {
     _logger           = logger;
     _operationConfig  = operationConfig.Value;
     _uponorClient     = uponorClient;
     _featureManager   = featureManager;
     _detailsContainer = detailsContainer;
     _hassMqttManager  = hassMqttManager;
     _config           = config.Value;
 }