Changed the HA REST API so that it returns "UNKNOWN" when it's neither master nor slave.
Added a unit test to drive out the functionality via a local binding.
Changed the HA REST API so that it returns "UNKNOWN" when it's neither master nor slave.
Added a unit test to drive out the functionality via a local binding.