Remove PowerMonitor.Manager project and its dependencies
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
using HomeAssistant.Models;
|
||||
using NetDaemon.Extensions.MqttEntityManager;
|
||||
|
||||
namespace PowerMonitor.Models;
|
||||
|
||||
public sealed class PowerMonitorEntity : EntityCreateModel
|
||||
{
|
||||
public string Domain { get; }
|
||||
public string Identifier { get; }
|
||||
public string Name { get; }
|
||||
|
||||
public PowerMonitorEntity(string domain, string identifier, string name)
|
||||
{
|
||||
Domain = domain;
|
||||
Identifier = identifier;
|
||||
EntityId = $"{Domain}.{Identifier}";
|
||||
Name = string.IsNullOrWhiteSpace(name) ? identifier : name;
|
||||
|
||||
Options = new EntityCreationOptions
|
||||
{
|
||||
UniqueId = EntityId,
|
||||
Name = Name
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user