-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Primary ctrs and some warnings fixed * Adding timeout
- Loading branch information
1 parent
c5d971d
commit 25460d7
Showing
18 changed files
with
114 additions
and
186 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
17 changes: 3 additions & 14 deletions
17
src/Client/NetDaemon.HassClient/Internal/HomeAssistantConnectionFactory.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,10 @@ | ||
namespace NetDaemon.Client.Internal; | ||
|
||
internal class HomeAssistantConnectionFactory : IHomeAssistantConnectionFactory | ||
internal class HomeAssistantConnectionFactory(ILogger<IHomeAssistantConnection> logger, | ||
IHomeAssistantApiManager apiManager) : IHomeAssistantConnectionFactory | ||
{ | ||
private readonly IHomeAssistantApiManager _apiManager; | ||
private readonly ILogger<IHomeAssistantConnection> _logger; | ||
|
||
public HomeAssistantConnectionFactory( | ||
ILogger<IHomeAssistantConnection> logger, | ||
IHomeAssistantApiManager apiManager | ||
) | ||
{ | ||
_logger = logger; | ||
_apiManager = apiManager; | ||
} | ||
|
||
public IHomeAssistantConnection New(IWebSocketClientTransportPipeline transportPipeline) | ||
{ | ||
return new HomeAssistantConnection(_logger, transportPipeline, _apiManager); | ||
return new HomeAssistantConnection(logger, transportPipeline, apiManager); | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.