def test_from_knx_binary_heat_cool(self):
     """Test from_knx function with invalid payload."""
     xknx = XKNX()
     remote_value = RemoteValueBinaryHeatCool(
         xknx, controller_mode=HVACControllerMode.HEAT)
     with self.assertRaises(CouldNotParseTelegram):
         remote_value.from_knx(DPTArray((0x9, 0xF)))
 def test_from_knx_heat_cool(self):
     """Test from_knx function with normal operation."""
     xknx = XKNX()
     remote_value = RemoteValueBinaryHeatCool(
         xknx, controller_mode=HVACControllerMode.HEAT)
     self.assertEqual(remote_value.from_knx(DPTBinary(True)),
                      HVACControllerMode.HEAT)
     self.assertEqual(remote_value.from_knx(DPTBinary(False)),
                      HVACControllerMode.COOL)