Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from iberisoft/master
Calling Gateway.EnableLight results to report message from the gateway however it fires an exception in the new MiHome.GetOrAddDeviceByCommand method.
- Loading branch information
Showing
3 changed files
with
10 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
namespace MiHomeLib.Commands | ||
{ | ||
internal class GatewayLightCommand: Command | ||
internal class GatewayLightCommand : Command | ||
{ | ||
private readonly long _rgb; | ||
private readonly int _illumination; | ||
|
||
public GatewayLightCommand(long rgb, int illumination) | ||
public GatewayLightCommand(long rgb) | ||
{ | ||
_rgb = rgb; | ||
_illumination = illumination; | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return $"{{\"rgb\":{_rgb},\"illumination\":{_illumination}}}"; | ||
return $"{{\"rgb\":{_rgb}}}"; | ||
} | ||
} | ||
} |
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