Skip to content

Commit

Permalink
Fixed broken unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-brutsky committed May 17, 2024
1 parent 5922f64 commit 98534fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion MiHomeLib/Devices/Switch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public override void ParseData(string command)
}
}

Voltage = jObject.ParseVoltage();
Voltage = jObject.ParseVoltage() ?? Voltage;
}

public override string ToString()
Expand Down
1 change: 0 additions & 1 deletion MiHomeLib/MiHome.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using MiHomeLib.Commands;
using MiHomeLib.Contracts;
using MiHomeLib.Devices;
using MiHomeLib.Events;
using Newtonsoft.Json.Linq;

namespace MiHomeLib
Expand Down

0 comments on commit 98534fe

Please sign in to comment.