mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 20:47:04 +00:00
adds ToLower() for device type when adding plugin to factory
This commit is contained in:
parent
158b2fc346
commit
d150e03bdd
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ namespace PepperDash.Essentials.Core
|
||||||
public static void AddFactoryForType(string type, Func<DeviceConfig, IKeyed> method)
|
public static void AddFactoryForType(string type, Func<DeviceConfig, IKeyed> method)
|
||||||
{
|
{
|
||||||
Debug.Console(0, Debug.ErrorLogLevel.Notice, "Adding factory method for type '{0}'", type);
|
Debug.Console(0, Debug.ErrorLogLevel.Notice, "Adding factory method for type '{0}'", type);
|
||||||
DeviceFactory.FactoryMethods.Add(type, method);
|
DeviceFactory.FactoryMethods.Add(type.ToLower(), method);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue