mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-14 13:07:18 +00:00
updates to get things back working
This commit is contained in:
parent
97995df962
commit
7b3ef897fb
10 changed files with 22 additions and 22 deletions
|
|
@ -241,7 +241,7 @@ namespace PepperDash.Essentials.Core
|
|||
ShutdownType = eShutdownType.None;
|
||||
}
|
||||
|
||||
protected void InitializeDisplay(DisplayBase display)
|
||||
protected void InitializeDisplay(TwoWayDisplayBase display)
|
||||
{
|
||||
// Link power, warming, cooling to display
|
||||
display.PowerIsOnFeedback.OutputChange += PowerIsOnFeedbackOnOutputChange;
|
||||
|
|
@ -615,9 +615,9 @@ namespace PepperDash.Essentials.Core
|
|||
if (route.SourceKey.Equals("$off", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
dest.ReleaseRoute();
|
||||
if (dest is IPower)
|
||||
if (dest is IHasPowerControl)
|
||||
{
|
||||
(dest as IPower).PowerOff();
|
||||
(dest as IHasPowerControl).PowerOff();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue